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 J H <do...@hotmail.com> on 2005/08/03 23:51:44 UTC

Change the Port that Axis Service runs as

Hi Everyone.  This is my first time e-mailing this list, because the 
documentation out there for this project has been fantastic!  (Thanks to the 
Axis and Eclipse participants).

I have built a self-contained web application (service) that implements the 
Axis libraries.  I have another webapplication that I would like to be able 
to run on the same application server that talks to this custom axis service 
to send messages back and forth to my client.  It seems that the two 
applications are fighting over the default port 8080.  I have confirmed this 
by installing the 2 webservices on different machines, and the solution 
works great.  I know it must be a simple solution, but I can't find out 
anywhere how to change the port that Axis runs as.

Thanks!
Jeff



Re: Change the Port that Axis Service runs as

Posted by J H <do...@hotmail.com>.
Hi All.  Thanks for your help on this!  I've come up with some more 
findings.

Load-on-startup only affects servlets within the scope of a webapplication, 
it does not affect the
order that different webapps are loaded from the application server.

To change the order that things are loaded in Tomcat 5.5, I used the 
suggestion of renaming my webapp to be lower in the alphabetical scheme.  
For example, my axis service, I named A123, and I named my client webapp 
X123, this loads the X123 client safely after first initing, A123 service.  
Short, Sweet, Simple, and a little ugly.

My next task is to move everything over to Websphere 6.1.  No Problems with 
Axis, only Slide problems now.    One interesting note on all of this with 
Websphere is that even if my service isn't running and the client requests 
it, Websphere, puts the client on hold, starts up the service and continues 
running without the problems I discussed for Tomcat.

Thanks,
Jeff

>From: James Wilson <wi...@ociweb.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: Change the Port that Axis Service runs as
>Date: Wed, 10 Aug 2005 08:21:33 -0500
>
>
>
>
>Quoting Joachim Goetze <j_...@informatik.uni-kl.de>:
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hi,
> >
> > James Wilson wrote:
> > >
> > > Quoting Joachim Goetze <j_...@informatik.uni-kl.de>:
> > >
> > >
> > > Hi,
> > >
> > > if I am not mistaken the Web.XML is part of the Tomcat-Config. So the
> > >
> > >
> > >> web.xml is part of your application.  It is not part of the container
> > >> configuration.  Unless you look at it from the perspective of your
> > application
> > >> telling the container how to configure it.
> >
> > Right, that is my perspective. But there is only a Web.XML in the Axis
> > folder, so it is Axis that is configured here and not a Web Service of 
>Axis.
> >
> > > only thing you can "load on startup" here is Axis, not the Web 
>Services
> > > managed by Axis. That is why I was asking yesterday, if there is a
> > > chance to load a Web Service immediately after the Axis startup
> > > (although I do not care about any order of startup, which makes your
> > > case even more complex).
> > >
> > >
> > >> I don't know what you would need to start.  Start tomcat and your 
>service
> > is
> > >> ready to recieve requests.  There is no need for load-on-startup.  If 
>you
> > are
> > >> writing a web application that is a client and you want it to start 
>making
> > >> requests to a service on startup, then look at implementing a
> > >> ServletContextListener.
> >
> > Complex applications may require services that do some organizational
> > stuff on startup, so thats why I am looking for such a solution. Sure my
> >  web application is ready for request immediately after the start of the
> > container, but what if I need to do something time consuming prior the
> > first request?
>
>I recommend using a ServletContextListener.  If you are using Log4j, you'll 
>want
>to check out this thread:
>http://marc.theaimsgroup.com/?l=log4j-user&m=109585712427674&w=1
>
>
> >
> > Regards,
> > Jo
> >
> > > Regards,
> > > Jo
> > >
> > >
> > >
> > >
> > > J H wrote:
> > >
> > >>I found something incredibly interesting, by chance this weekend.  If 
>I
> > >>startup the 2nd axis webapp first and then start the 1st webapp after
> > >>that, everything works fine on the same machine.  This must have been
> > >>why the two webapps worked fine on different machines.  I started
> > >>playing with the load-on-startup tag in the web.xml to see if I could
> > >>setup which webapp was loaded first.
> > >
> > >
> > >> Try alphaticially naming the one you want to load first.  Assuming 
>you are
> > >> dropping the war files into CATALINA_HOME/webapps or using
> > >> CATALINA_HOME/conf/server/localhost maybe Tomcat will find and load 
>them
> > in
> > >> that order.
> > >
> > >
> > >>   It hasn't worked yet, but I might
> > >>be doing something wrong.
> > >
> > >>Jeff
> > >
> > >
> > >>>From: James Wilson <wi...@ociweb.com>
> > >>>Reply-To: axis-user@ws.apache.org
> > >>>To: axis-user@ws.apache.org
> > >>>Subject: Re: Change the Port that Axis Service runs as
> > >>>Date: Fri, 05 Aug 2005 12:01:53 -0500
> > >
> > >>>My last thought is that maybe there something in WebDAV that is
> > >>>getting in the
> > >>>way.
> > >
> > >>>-James
> > >
> > >
> > >>>Quoting J H <do...@hotmail.com>:
> > >
> > >
> > >>>>Thanks for trying this on your computer!  I have basically the same
> > >>>>configuration, JDK 5, Tomcat 5.5, and Axis 1.2.1.
> > >>>>
> > >>>>1st Webapp
> > >>>>------------------
> > >>>>Slide
> > >>>>(Handles External Webdav Requests via
> > >
> > >>>http://localhost:8080/mywebdav, makes
> > >
> > >>>>axis/soap calls to the second webapp inside of the Tomcat container
> > >
> > >>>to get
> > >
> > >>>>the data from the database.)
> > >>>>
> > >>>>
> > >>>>2nd Webapp
> > >>>>------------------
> > >>>>Self Contained Axis Webapp (I just made my own webapp and included
> > >
> > >>>the axis
> > >
> > >>>>jars in the web-inf/lib directory)
> > >>>>(Handles Requests from the 1st Webapp, via
> > >>>>http://localhost:8080/myservice/services/MyService and retrieves
> > >
> > >>>data from a
> > >
> > >>>>database via JDBC)
> > >>>>
> > >>>>
> > >>>>
> > >>>>>From: James Wilson <wi...@ociweb.com>
> > >>>>>Reply-To: axis-user@ws.apache.org
> > >>>>>To: axis-user@ws.apache.org
> > >>>>>Subject: Re: Change the Port that Axis Service runs as
> > >>>>>Date: Fri, 05 Aug 2005 08:06:07 -0500
> > >>>>>
> > >>>>>I just setup a quick sample.  Using Axis 1.2.1 and Tomcat 5.5
> > >
> > >>>running in
> > >
> > >>>>>JRE 5.0
> > >>>>>I installed a second web app into tomcat.  It worked.
> > >>>>>
> > >>>>>I installed the two web apps by putting XML config files under
> > >>>>>CATALINA_HOME/conf/Catalina/localhost/ like below.  Both pointed at
> > >
> > >>>two
> > >
> > >>>>>different exploded-war directories
> > >>>>>    <?xml version="1.0" encoding="utf-8"?>
> > >>>>>    <Context docBase="C:/dev/client/war" path="/client"
> > >
> > >>>reloadable="true">
> > >
> > >>>>>    </Context>
> > >>>>>
> > >>>>>I then start Tomcat using the this command (allows remote debug 
>from
> > >>>>>eclipse):
> > >>>>>    %CATALINA_HOME%\bin\catalina.bat jpda start
> > >>>>>
> > >>>>>This is my standard development procedure.  My client connected to
> > >
> > >>>the Axis
> > >
> > >>>>>server via:
> > >>>>>   MyServiceLocator loc = new MyServiceLocator();
> > >>>>>
> > >>>>
> >
> >>loc.setMyPortEndpointAddress("http://127.0.0.1:8080/server/services/MyPort");
> > >
> > >>>>>   MyPortType port = loc.getMyPort();
> > >>>>>   port.invokeMyFunction();
> > >>>>>
> > >>>>>
> > >>>>>Hows is your procedure different?  I don't know if it's important, 
>but
> > >>>>>during
> > >>>>>this test I had all of the Axis jar dependencies in both
> > >
> > >>>war/WEB-INF/lib
> > >
> > >>>>>directories (duplicated).
> > >>>>>
> > >>>>>Quoting J H <do...@hotmail.com>:
> > >>>>>
> > >>>>>
> > >>>>>>Here's is the complete stack trace...
> > >>>>>>
> > >>>>>>Again, the scenario is that when I install the 2 wars on seperate
> > >>>>>
> > >>>>>machines,
> > >>>>>
> > >>>>>>everything works fine.  When I install the wars on the same
> > >
> > >>>machine,
> > >
> > >>>>>nothing
> > >>>>>
> > >>>>>>works and I get the message pasted below after about 5 minutes
> > >
> > >>>from the
> > >
> > >>>>>>first client axis/soap call.
> > >>>>>>
> > >>>>>>My theory is that both webapplications are serving out to port
> > >
> > >>>8080 and
> > >
> > >>>>>when
> > >>>>>
> > >>>>>>the axis client is trying to communicate with the axis server it
> > >>>>>
> > >>>>>connects to
> > >>>>>
> > >>>>>>port 8080, but it is talking to the wrong webapp.  That is why
> > >>>>>
> > >>>>>everything
> > >>>>>
> > >>>>>>works fine when I move the webapps to different machines.
> > >>>>>>
> > >>>>>>Thanks again,
> > >>>>>>Jeff
> > >>>>>>
> > >>>>>>Caught SOAPException :; nested exception is:
> > >>>>>>    java.net.SocketTimeoutException: Read timed out
> > >>>>>>AxisFault
> > >>>>>>faultCode:
> > >>>>>
> > >>>>>{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> > >>>>>
> > >>>>>>faultSubcode:
> > >>>>>>faultString: java.net.SocketTimeoutException: Read timed out
> > >>>>>>faultActor:
> > >>>>>>faultNode:
> > >>>>>>faultDetail:
> > >>>>>>
> > >>>>>
> > 
> >>>{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException:
> > >
> > >>>>>>Read timed out
> > >>>>>>    at java.net.SocketInputStream.socketRead0(Native Method)
> > >>>>>>    at java.net.SocketInputStream.read(SocketInputStream.java:129)
> > >>>>>>    at
> > >
> > >>>java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> > >
> > >>>>>>    at
> > >
> > >>>java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> > >>>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> > >
> > >>>>>>    at 
>org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> > >>>>>>    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> > >>>>>>    at
> > >
> > >>>org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> > >
> > >>>>>>    at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> > >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2748)
> > >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2424)
> > >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2347)
> > >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:1804)
> > >>>>>>    at
> > >
> > >>>com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> > >
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> > >
> > >>>>>>    at
> > >
> > >>>org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> > >
> > >>>>>>    at
> > >
> > >>>org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> > >
> > >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:478)
> > >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:412)
> > >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:375)
> > >>>>>>    at
> > >
> > >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > >
> > >>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > >>>>>>    at
> > >
> > >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> > 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > >
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > >>>>>
> > >>>>>>    at
> > >
> > >>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > >>>>>
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > >>>>>
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > >>>>
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > >
> > >>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>>>>>    at
> > >>>>>>
> > >>>>
> >
> >>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >
> > >>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
> > >>>>>>    at
> > >>>>>>
> > >>>>
> >
> >>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > >
> > >>>>>>    {http://xml.apache.org/axis/}hostname:win2kjeff
> > >>>>>>
> > >>>>>>java.net.SocketTimeoutException: Read timed out
> > >>>>>>    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
> > >>>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> > >
> > >>>>>>    at 
>org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> > >>>>>>    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> > >>>>>>    at
> > >
> > >>>org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> > >
> > >>>>>>    at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> > >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2748)
> > >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2424)
> > >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2347)
> > >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:1804)
> > >>>>>>    at
> > >
> > >>>com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> > >
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> > >
> > >>>>>>    at
> > >
> > >>>org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> > >
> > >>>>>>    at
> > >
> > >>>org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> > >
> > >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:478)
> > >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:412)
> > >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:375)
> > >>>>>>    at
> > >
> > >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > >
> > >>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > >>>>>>    at
> > >
> > >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> > 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > >
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > >>>>>
> > >>>>>>    at
> > >
> > >>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > >>>>>
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > >>>>>
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > >>>>
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > >
> > >>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>>>>>    at
> > >>>>>>
> > >>>>
> >
> >>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >
> > >>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
> > >>>>>>    at
> > >>>>>>
> > >>>>
> >
> >>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > >
> > >>>>>>Caused by: java.net.SocketTimeoutException: Read timed out
> > >>>>>>    at java.net.SocketInputStream.socketRead0(Native Method)
> > >>>>>>    at java.net.SocketInputStream.read(SocketInputStream.java:129)
> > >>>>>>    at
> > >
> > >>>java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> > >
> > >>>>>>    at
> > >
> > >>>java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> > >>>>>
> > >>>>>>    ... 42 more
> > >>>>>>org.apache.slide.common.ServiceAccessException: Service
> > >>>>>>com.project.slide.store.SecurityStore@1071521 access error : ;
> > >
> > >>>nested
> > >
> > >>>>>>exception is:
> > >>>>>>    java.net.SocketTimeoutException: Read timed out
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:135)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> > >
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> > >
> > >>>>>>    at
> > >
> > >>>org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> > >
> > >>>>>>    at
> > >
> > >>>org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> > >
> > >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:478)
> > >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:412)
> > >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:375)
> > >>>>>>    at
> > >
> > >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > >
> > >>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > >>>>>>    at
> > >
> > >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> > 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > >
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > >>>>>
> > >>>>>>    at
> > >
> > >>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > >>>>>
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > >>>>>
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > >>>>
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > >
> > >>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>>>>>    at
> > >>>>>>
> > >>>>
> >
> >>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >
> > >>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
> > >>>>>>    at
> > >>>>>>
> > >>>>
> >
> >>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > >
> > >>>>>>org.apache.slide.structure.ObjectNotFoundException: No object
> > >
> > >>>found at
> > >
> > >>>>>>/actions
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>slidestore.reference.MemoryDescriptorsStore.retrieveObject(MemoryDescriptorsStore.java:251)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:539)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:177)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.NamespaceConfig.getActionNode(NamespaceConfig.java:1106)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.NamespaceConfig.initializeNamespaceConfig(NamespaceConfig.java:596)
> > >
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.slide.common.Namespace.loadConfiguration(Namespace.java:888)
> > >>>>
> > >>>>>>    at
> > >
> > >>>org.apache.slide.common.Domain.initNamespace(Domain.java:864)
> > >
> > >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:478)
> > >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:412)
> > >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:375)
> > >>>>>>    at
> > >
> > >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > >
> > >>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > >>>>>>    at
> > >
> > >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> > 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > >
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > >>>>>
> > >>>>>>    at
> > >
> > >>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > >>>>>
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > >>>>>
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > >>>>
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > >
> > >>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>>>>>    at
> > >>>>>>
> > >>>>
> >
> >>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >
> > >>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
> > >>>>>>    at
> > >>>>>>
> > >>>>
> >
> >>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > >
> > >>>>>>java.lang.NullPointerException
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> > 
>org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> > >
> > >>>>>>    at
> > >
> > >>>org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> > >
> > >>>>>>    at
> > >
> > >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> > >
> > >>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > >>>>>>    at
> > >
> > >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> > 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > >
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > >>>>>
> > >>>>>>    at
> > >
> > >>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > >>>>>
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > >>>>>
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > >>>>
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > >
> > >>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>>>>>    at
> > >>>>>>
> > >>>>
> >
> >>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >
> > >>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
> > >>>>>>    at
> > >>>>>>
> > >>>>
> >
> >>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > >
> > >>>>>>java.lang.NullPointerException
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> > 
>org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> > >
> > >>>>>>    at
> > >
> > >>>org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> > >
> > >>>>>>    at
> > >
> > >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> > >
> > >>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > >>>>>>    at
> > >
> > >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> > 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >>>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >>>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> >
> >>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> >
> >>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >>>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > >
> > >>>>>>    at
> > >>>>>
> > 
> >>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >>>>>
> > >>>>>>    at
> > >>>>
> > 
> >>>>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> > >>>>
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > 
> >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> > >
> > >>>>>>    at
> > >>>>>>
> > >>>>
> > >
> >
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
> > >
> > >>>>>>    at java.lang.Thread.run(Thread.java:534)
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>>From: James Wilson <wi...@ociweb.com>
> > >>>>>>>Reply-To: axis-user@ws.apache.org
> > >>>>>>>To: axis-user@ws.apache.org, J H <do...@hotmail.com>
> > >>>>>>>CC: axis-user@ws.apache.org
> > >>>>>>>Subject: Re: Change the Port that Axis Service runs as
> > >>>>>>>Date: Thu, 04 Aug 2005 13:07:49 -0500
> > >>>>>>>
> > >>>>>>>What is the actuall error/exceptions you are seeing?  Before
> > >
> > >>>you make a
> > >
> > >>>>>>>request
> > >>>>>>>to your client application, can you successfully request the
> > >
> > >>>services
> > >
> > >>>>>wsdl
> > >>>>>
> > >>>>>>>from
> > >>>>>>>axis (http://localhost:9090/axis/services/MyPort?wsdl)?
> > >>>>>>>
> > >>>>>>>Quoting J H <do...@hotmail.com>:
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>>They are both setup to use different URI's, but I think what is
> > >>>>>
> > >>>>>going on
> > >>>>>
> > >>>>>>>is
> > >>>>>>>
> > >>>>>>>>that the first webapp is listening through port 8080 for slide
> > >>>>>
> > >>>>>messages
> > >>>>>
> > >>>>>>>and
> > >>>>>>>
> > >>>>>>>>the second, axis, webapp/service is listening for soap
> > >
> > >>>requests.
> > >
> > >>>>>>>>When the slide webapp receives a request it starts up a axis
> > >
> > >>>call to
> > >
> > >>>>>the
> > >>>>>
> > >>>>>>>>axis server which is also running on port 8080 and the whole
> > >
> > >>>tomcat
> > >
> > >>>>>>>>container becomes unstable.
> > >>>>>>>>
> > >>>>>>>>I REALLY appreciate your help!  I'm scouring the web looking
> > >
> > >>>for
> > >
> > >>>>>someone
> > >>>>>
> > >>>>>>>who
> > >>>>>>>
> > >>>>>>>>has done something similar.  It seems like changing the port
> > >
> > >>>for
> > >
> > >>>>>axis
> > >>>>>
> > >>>>>>>would
> > >>>>>>>
> > >>>>>>>>be something people would commonly do, is that assumption
> > >
> > >>>incorrect?
> > >
> > >>>>>>>>Thanks,
> > >>>>>>>>Jeff
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>>From: James Wilson <wi...@ociweb.com>
> > >>>>>>>>>Reply-To: axis-user@ws.apache.org
> > >>>>>>>>>To: axis-user@ws.apache.org
> > >>>>>>>>>Subject: Re: Change the Port that Axis Service runs as
> > >>>>>>>>>Date: Thu, 04 Aug 2005 11:28:44 -0500
> > >>>>>>>>>
> > >>>>>>>>>This is sounding more and more like a it's not really an Axis
> > >>>>>
> > >>>>>question,
> > >>>>>
> > >>>>>>>but
> > >>>>>>>
> > >>>>>>>>>a
> > >>>>>>>>>servlet container question.
> > >>>>>>>>>
> > >>>>>>>>>I'm assuming when you say port, you're talking about TCP/IP
> > >
> > >>>port.
> > >
> > >>>>>The
> > >>>>>
> > >>>>>>>port
> > >>>>>>>
> > >>>>>>>>>is
> > >>>>>>>>>maintained by the servlet container.  If you are developing
> > >
> > >>>two
> > >
> > >>>>>WARs at
> > >>>>>
> > >>>>>>>the
> > >>>>>>>
> > >>>>>>>>>same time, I recommend deploying both to the same instance of
> > >>>>>
> > >>>>>Tomcat
> > >>>>>
> > >>>>>>>(or
> > >>>>>>>
> > >>>>>>>>>some
> > >>>>>>>>>other container).  Then you would access the two web
> > >
> > >>>applications
> > >
> > >>>>>via
> > >>>>>
> > >>>>>>>the
> > >>>>>>>
> > >>>>>>>>>same
> > >>>>>>>>>port, but different URI
> > >>>>>>>>>    http://localhost:8080/axis
> > >>>>>>>>>    http://localhost:8080/interface
> > >>>>>>>>>
> > >>>>>>>>>where one war was axis.war and the other was interface.war.
> > >>>>>>>>>
> > >>>>>>>>>Too answer your question about changing the port, Tomcat
> > >
> > >>>controls
> > >
> > >>>>>this
> > >>>>>
> > >>>>>>>in
> > >>>>>>>
> > >>>>>>>>>CATALINA_HOME/conf/server.xml.  Look for the <Connector>
> > >
> > >>>element.
> > >
> > >>>>>You
> > >>>>>
> > >>>>>>>can
> > >>>>>>>
> > >>>>>>>>>learn more about Tomcat administration by following the
> > >>>>>
> > >>>>>Documentation
> > >>>>>
> > >>>>>>>link
> > >>>>>>>
> > >>>>>>>>>for
> > >>>>>>>>>the version you are using from this page:
> > >>>>>>>
> > >>>>>>>http://jakarta.apache.org/tomcat/
> > >>>>>>>
> > >>>>>>>>>-james
> > >>>>>>>>>
> > >>>>>>>>>Quoting J H <do...@hotmail.com>:
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>>Well, I started out using Eclipse to create WAR files
> > >
> > >>>for both
> > >
> > >>>>>>>>>>webapplications (axis and interface), but I never ran
> > >
> > >>>the two in
> > >
> > >>>>>>>unison
> > >>>>>>>
> > >>>>>>>>>>through Eclipse.
> > >>>>>>>>>>
> > >>>>>>>>>>Is there a way to change the port that a servlet runs on?
> > >>>>>>>>>>
> > >>>>>>>>>>Thanks,
> > >>>>>>>>>>Jeff
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>>From: James Wilson <wi...@ociweb.com>
> > >>>>>>>>>>>Reply-To: axis-user@ws.apache.org
> > >>>>>>>>>>>To: axis-user@ws.apache.org
> > >>>>>>>>>>>Subject: Re: Change the Port that Axis Service runs as
> > >>>>>>>>>>>Date: Thu, 04 Aug 2005 07:38:56 -0500
> > >>>>>>>>>>>
> > >>>>>>>>>>>I haven't been using Axis all that long either.  However I
> > >>>>>
> > >>>>>don't
> > >>>>>
> > >>>>>>>think
> > >>>>>>>
> > >>>>>>>>>Axis
> > >>>>>>>>>
> > >>>>>>>>>>>itself can run on a port.  Thus the application
> > >
> > >>>fighting over
> > >
> > >>>>>port
> > >>>>>
> > >>>>>>>8080
> > >>>>>>>
> > >>>>>>>>>>>would
> > >>>>>>>>>>>be your servlet container.  Are you starting Tomcat via an
> > >>>>>
> > >>>>>Eclipse
> > >>>>>
> > >>>>>>>>>plugin?
> > >>>>>>>>>
> > >>>>>>>>>>>hope it helps,
> > >>>>>>>>>>>james
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>Quoting J H <do...@hotmail.com>:
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>>Hi Everyone.  This is my first time e-mailing this
> > >
> > >>>list,
> > >
> > >>>>>because
> > >>>>>
> > >>>>>>>the
> > >>>>>>>
> > >>>>>>>>>>>>documentation out there for this project has been
> > >
> > >>>fantastic!
> > >
> > >>>>>>>>>(Thanks to
> > >>>>>>>>>
> > >>>>>>>>>>>the
> > >>>>>>>>>>>
> > >>>>>>>>>>>>Axis and Eclipse participants).
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>I have built a self-contained web application
> > >
> > >>>(service) that
> > >
> > >>>>>>>>>implements
> > >>>>>>>>>
> > >>>>>>>>>>>the
> > >>>>>>>>>>>
> > >>>>>>>>>>>>Axis libraries.  I have another webapplication that
> > >
> > >>>I would
> > >
> > >>>>>like
> > >>>>>
> > >>>>>>>to
> > >>>>>>>
> > >>>>>>>>>be
> > >>>>>>>>>
> > >>>>>>>>>>>able
> > >>>>>>>>>>>
> > >>>>>>>>>>>>to run on the same application server that talks to
> > >
> > >>>this
> > >
> > >>>>>custom
> > >>>>>
> > >>>>>>>axis
> > >>>>>>>
> > >>>>>>>>>>>service
> > >>>>>>>>>>>
> > >>>>>>>>>>>>to send messages back and forth to my client.  It
> > >
> > >>>seems that
> > >
> > >>>>>the
> > >>>>>
> > >>>>>>>two
> > >>>>>>>
> > >>>>>>>>>>>>applications are fighting over the default port
> > >
> > >>>8080.  I
> > >
> > >>>>>have
> > >>>>>
> > >>>>>>>>>confirmed
> > >>>>>>>>>
> > >>>>>>>>>>>this
> > >>>>>>>>>>>
> > >>>>>>>>>>>>by installing the 2 webservices on different
> > >
> > >>>machines, and
> > >
> > >>>>>the
> > >>>>>
> > >>>>>>>>>solution
> > >>>>>>>>>
> > >>>>>>>>>>>>works great.  I know it must be a simple solution,
> > >
> > >>>but I
> > >
> > >>>>>can't
> > >>>>>
> > >>>>>>>find
> > >>>>>>>
> > >>>>>>>>>out
> > >>>>>>>>>
> > >>>>>>>>>>>>anywhere how to change the port that Axis runs as.
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>Thanks!
> > >>>>>>>>>>>>Jeff
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>
> > >>>>
> > >
> > >
> > >
> > > --
> > > 
>------------------------------------------------------------------------
> > > Dipl.-Inform. Joachim Götze         email: 
>j_goetze@informatik.uni-kl.de
> > > University of Kaiserslautern        phone: ++49-(0)631-205-3979
> > > Department of Computer Science      fax:   ++49-(0)631-205-3056
> > > PO Box 3049                         www:   http://www.icsy.de
> > > D-67653 Kaiserslautern, Germany
> > > 
>------------------------------------------------------------------------
> >
> > - --
> > - 
>------------------------------------------------------------------------
> > Dipl.-Inform. Joachim Götze         email: j_goetze@informatik.uni-kl.de
> > University of Kaiserslautern        phone: ++49-(0)631-205-3979
> > Department of Computer Science      fax:   ++49-(0)631-205-3056
> > PO Box 3049                         www:   http://www.icsy.de
> > D-67653 Kaiserslautern, Germany
> > - 
>------------------------------------------------------------------------
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.0 (GNU/Linux)
> > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> >
> > iD8DBQFC+Z/Pgyvot+f33J4RAmVdAJ4+NyJtrhrLHMZCULof/5xYWNwLbACgvBOs
> > 8E1LGwoOJi3CfJpu0CiQLhE=
> > =F7XM
> > -----END PGP SIGNATURE-----
> >



Re: Change the Port that Axis Service runs as

Posted by James Wilson <wi...@ociweb.com>.


Quoting Joachim Goetze <j_...@informatik.uni-kl.de>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> James Wilson wrote:
> >
> > Quoting Joachim Goetze <j_...@informatik.uni-kl.de>:
> >
> >
> > Hi,
> >
> > if I am not mistaken the Web.XML is part of the Tomcat-Config. So the
> >
> >
> >> web.xml is part of your application.  It is not part of the container
> >> configuration.  Unless you look at it from the perspective of your
> application
> >> telling the container how to configure it.
>
> Right, that is my perspective. But there is only a Web.XML in the Axis
> folder, so it is Axis that is configured here and not a Web Service of Axis.
>
> > only thing you can "load on startup" here is Axis, not the Web Services
> > managed by Axis. That is why I was asking yesterday, if there is a
> > chance to load a Web Service immediately after the Axis startup
> > (although I do not care about any order of startup, which makes your
> > case even more complex).
> >
> >
> >> I don't know what you would need to start.  Start tomcat and your service
> is
> >> ready to recieve requests.  There is no need for load-on-startup.  If you
> are
> >> writing a web application that is a client and you want it to start making
> >> requests to a service on startup, then look at implementing a
> >> ServletContextListener.
>
> Complex applications may require services that do some organizational
> stuff on startup, so thats why I am looking for such a solution. Sure my
>  web application is ready for request immediately after the start of the
> container, but what if I need to do something time consuming prior the
> first request?

I recommend using a ServletContextListener.  If you are using Log4j, you'll want
to check out this thread:
http://marc.theaimsgroup.com/?l=log4j-user&m=109585712427674&w=1


>
> Regards,
> Jo
>
> > Regards,
> > Jo
> >
> >
> >
> >
> > J H wrote:
> >
> >>I found something incredibly interesting, by chance this weekend.  If I
> >>startup the 2nd axis webapp first and then start the 1st webapp after
> >>that, everything works fine on the same machine.  This must have been
> >>why the two webapps worked fine on different machines.  I started
> >>playing with the load-on-startup tag in the web.xml to see if I could
> >>setup which webapp was loaded first.
> >
> >
> >> Try alphaticially naming the one you want to load first.  Assuming you are
> >> dropping the war files into CATALINA_HOME/webapps or using
> >> CATALINA_HOME/conf/server/localhost maybe Tomcat will find and load them
> in
> >> that order.
> >
> >
> >>   It hasn't worked yet, but I might
> >>be doing something wrong.
> >
> >>Jeff
> >
> >
> >>>From: James Wilson <wi...@ociweb.com>
> >>>Reply-To: axis-user@ws.apache.org
> >>>To: axis-user@ws.apache.org
> >>>Subject: Re: Change the Port that Axis Service runs as
> >>>Date: Fri, 05 Aug 2005 12:01:53 -0500
> >
> >>>My last thought is that maybe there something in WebDAV that is
> >>>getting in the
> >>>way.
> >
> >>>-James
> >
> >
> >>>Quoting J H <do...@hotmail.com>:
> >
> >
> >>>>Thanks for trying this on your computer!  I have basically the same
> >>>>configuration, JDK 5, Tomcat 5.5, and Axis 1.2.1.
> >>>>
> >>>>1st Webapp
> >>>>------------------
> >>>>Slide
> >>>>(Handles External Webdav Requests via
> >
> >>>http://localhost:8080/mywebdav, makes
> >
> >>>>axis/soap calls to the second webapp inside of the Tomcat container
> >
> >>>to get
> >
> >>>>the data from the database.)
> >>>>
> >>>>
> >>>>2nd Webapp
> >>>>------------------
> >>>>Self Contained Axis Webapp (I just made my own webapp and included
> >
> >>>the axis
> >
> >>>>jars in the web-inf/lib directory)
> >>>>(Handles Requests from the 1st Webapp, via
> >>>>http://localhost:8080/myservice/services/MyService and retrieves
> >
> >>>data from a
> >
> >>>>database via JDBC)
> >>>>
> >>>>
> >>>>
> >>>>>From: James Wilson <wi...@ociweb.com>
> >>>>>Reply-To: axis-user@ws.apache.org
> >>>>>To: axis-user@ws.apache.org
> >>>>>Subject: Re: Change the Port that Axis Service runs as
> >>>>>Date: Fri, 05 Aug 2005 08:06:07 -0500
> >>>>>
> >>>>>I just setup a quick sample.  Using Axis 1.2.1 and Tomcat 5.5
> >
> >>>running in
> >
> >>>>>JRE 5.0
> >>>>>I installed a second web app into tomcat.  It worked.
> >>>>>
> >>>>>I installed the two web apps by putting XML config files under
> >>>>>CATALINA_HOME/conf/Catalina/localhost/ like below.  Both pointed at
> >
> >>>two
> >
> >>>>>different exploded-war directories
> >>>>>    <?xml version="1.0" encoding="utf-8"?>
> >>>>>    <Context docBase="C:/dev/client/war" path="/client"
> >
> >>>reloadable="true">
> >
> >>>>>    </Context>
> >>>>>
> >>>>>I then start Tomcat using the this command (allows remote debug from
> >>>>>eclipse):
> >>>>>    %CATALINA_HOME%\bin\catalina.bat jpda start
> >>>>>
> >>>>>This is my standard development procedure.  My client connected to
> >
> >>>the Axis
> >
> >>>>>server via:
> >>>>>   MyServiceLocator loc = new MyServiceLocator();
> >>>>>
> >>>>
>
>>loc.setMyPortEndpointAddress("http://127.0.0.1:8080/server/services/MyPort");
> >
> >>>>>   MyPortType port = loc.getMyPort();
> >>>>>   port.invokeMyFunction();
> >>>>>
> >>>>>
> >>>>>Hows is your procedure different?  I don't know if it's important, but
> >>>>>during
> >>>>>this test I had all of the Axis jar dependencies in both
> >
> >>>war/WEB-INF/lib
> >
> >>>>>directories (duplicated).
> >>>>>
> >>>>>Quoting J H <do...@hotmail.com>:
> >>>>>
> >>>>>
> >>>>>>Here's is the complete stack trace...
> >>>>>>
> >>>>>>Again, the scenario is that when I install the 2 wars on seperate
> >>>>>
> >>>>>machines,
> >>>>>
> >>>>>>everything works fine.  When I install the wars on the same
> >
> >>>machine,
> >
> >>>>>nothing
> >>>>>
> >>>>>>works and I get the message pasted below after about 5 minutes
> >
> >>>from the
> >
> >>>>>>first client axis/soap call.
> >>>>>>
> >>>>>>My theory is that both webapplications are serving out to port
> >
> >>>8080 and
> >
> >>>>>when
> >>>>>
> >>>>>>the axis client is trying to communicate with the axis server it
> >>>>>
> >>>>>connects to
> >>>>>
> >>>>>>port 8080, but it is talking to the wrong webapp.  That is why
> >>>>>
> >>>>>everything
> >>>>>
> >>>>>>works fine when I move the webapps to different machines.
> >>>>>>
> >>>>>>Thanks again,
> >>>>>>Jeff
> >>>>>>
> >>>>>>Caught SOAPException :; nested exception is:
> >>>>>>    java.net.SocketTimeoutException: Read timed out
> >>>>>>AxisFault
> >>>>>>faultCode:
> >>>>>
> >>>>>{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> >>>>>
> >>>>>>faultSubcode:
> >>>>>>faultString: java.net.SocketTimeoutException: Read timed out
> >>>>>>faultActor:
> >>>>>>faultNode:
> >>>>>>faultDetail:
> >>>>>>
> >>>>>
> >>>{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException:
> >
> >>>>>>Read timed out
> >>>>>>    at java.net.SocketInputStream.socketRead0(Native Method)
> >>>>>>    at java.net.SocketInputStream.read(SocketInputStream.java:129)
> >>>>>>    at
> >
> >>>java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> >
> >>>>>>    at
> >
> >>>java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> >>>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> >
> >>>>>>    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> >>>>>>    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> >>>>>>    at
> >
> >>>org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> >
> >>>>>>    at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2748)
> >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2424)
> >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2347)
> >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:1804)
> >>>>>>    at
> >
> >>>com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> >
> >>>>>>    at
> >>>>
> >>>>org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> >
> >>>>>>    at
> >
> >>>org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> >
> >>>>>>    at
> >
> >>>org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> >
> >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:478)
> >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:412)
> >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:375)
> >>>>>>    at
> >
> >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> >
> >>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >>>>>>    at
> >
> >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >>>>>
> >>>>>>    at
> >
> >>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >>>>>
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> >>>>>
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> >>>>
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> >
> >>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>    at
> >>>>>>
> >>>>
>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
> >>>>>>    at
> >>>>>>
> >>>>
>
>>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> >
> >>>>>>    {http://xml.apache.org/axis/}hostname:win2kjeff
> >>>>>>
> >>>>>>java.net.SocketTimeoutException: Read timed out
> >>>>>>    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> >>>>>>    at
> >>>>>
> >>>>>org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
> >>>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> >
> >>>>>>    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> >>>>>>    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> >>>>>>    at
> >
> >>>org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> >
> >>>>>>    at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2748)
> >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2424)
> >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2347)
> >>>>>>    at org.apache.axis.client.Call.invoke(Call.java:1804)
> >>>>>>    at
> >
> >>>com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> >
> >>>>>>    at
> >>>>
> >>>>org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> >
> >>>>>>    at
> >
> >>>org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> >
> >>>>>>    at
> >
> >>>org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> >
> >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:478)
> >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:412)
> >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:375)
> >>>>>>    at
> >
> >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> >
> >>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >>>>>>    at
> >
> >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >>>>>
> >>>>>>    at
> >
> >>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >>>>>
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> >>>>>
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> >>>>
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> >
> >>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>    at
> >>>>>>
> >>>>
>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
> >>>>>>    at
> >>>>>>
> >>>>
>
>>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> >
> >>>>>>Caused by: java.net.SocketTimeoutException: Read timed out
> >>>>>>    at java.net.SocketInputStream.socketRead0(Native Method)
> >>>>>>    at java.net.SocketInputStream.read(SocketInputStream.java:129)
> >>>>>>    at
> >
> >>>java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> >
> >>>>>>    at
> >
> >>>java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> >>>>>
> >>>>>>    ... 42 more
> >>>>>>org.apache.slide.common.ServiceAccessException: Service
> >>>>>>com.project.slide.store.SecurityStore@1071521 access error : ;
> >
> >>>nested
> >
> >>>>>>exception is:
> >>>>>>    java.net.SocketTimeoutException: Read timed out
> >>>>>>    at
> >>>>>>
> >>>>
> >>com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:135)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> >
> >>>>>>    at
> >>>>
> >>>>org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> >
> >>>>>>    at
> >
> >>>org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> >
> >>>>>>    at
> >
> >>>org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> >
> >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:478)
> >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:412)
> >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:375)
> >>>>>>    at
> >
> >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> >
> >>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >>>>>>    at
> >
> >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >>>>>
> >>>>>>    at
> >
> >>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >>>>>
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> >>>>>
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> >>>>
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> >
> >>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>    at
> >>>>>>
> >>>>
>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
> >>>>>>    at
> >>>>>>
> >>>>
>
>>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> >
> >>>>>>org.apache.slide.structure.ObjectNotFoundException: No object
> >
> >>>found at
> >
> >>>>>>/actions
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
slidestore.reference.MemoryDescriptorsStore.retrieveObject(MemoryDescriptorsStore.java:251)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:539)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:177)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.NamespaceConfig.getActionNode(NamespaceConfig.java:1106)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.NamespaceConfig.initializeNamespaceConfig(NamespaceConfig.java:596)
> >
> >>>>>>    at
> >>>>
> >>>>org.apache.slide.common.Namespace.loadConfiguration(Namespace.java:888)
> >>>>
> >>>>>>    at
> >
> >>>org.apache.slide.common.Domain.initNamespace(Domain.java:864)
> >
> >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:478)
> >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:412)
> >>>>>>    at org.apache.slide.common.Domain.init(Domain.java:375)
> >>>>>>    at
> >
> >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> >
> >>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >>>>>>    at
> >
> >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >>>>>
> >>>>>>    at
> >
> >>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >>>>>
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> >>>>>
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> >>>>
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> >
> >>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>    at
> >>>>>>
> >>>>
>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
> >>>>>>    at
> >>>>>>
> >>>>
>
>>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> >
> >>>>>>java.lang.NullPointerException
> >>>>>>    at
> >>>>>>
> >>>>
> >
> org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> >
> >>>>>>    at
> >
> >>>org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> >
> >>>>>>    at
> >
> >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> >
> >>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >>>>>>    at
> >
> >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >>>>>
> >>>>>>    at
> >
> >>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >>>>>
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> >>>>>
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> >>>>
> >>>>>>    at
> >>>>
> >>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> >
> >>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>    at
> >>>>>>
> >>>>
>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
> >>>>>>    at
> >>>>>>
> >>>>
>
>>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> >
> >>>>>>java.lang.NullPointerException
> >>>>>>    at
> >>>>>>
> >>>>
> >
> org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> >
> >>>>>>    at
> >
> >>>org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> >
> >>>>>>    at
> >
> >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> >
> >>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >>>>>>    at
> >
> >>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >>>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >>>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
> >
> >>>>>>    at
> >>>>>>
> >>>>
>
>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >
> >>>>>>    at
> >>>>>>
> >>>>
>
>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >>>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> >
> >>>>>>    at
> >>>>>
> >>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >>>>>
> >>>>>>    at
> >>>>
> >>>>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> >>>>
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> >
> >>>>>>    at
> >>>>>>
> >>>>
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
> >
> >>>>>>    at java.lang.Thread.run(Thread.java:534)
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>From: James Wilson <wi...@ociweb.com>
> >>>>>>>Reply-To: axis-user@ws.apache.org
> >>>>>>>To: axis-user@ws.apache.org, J H <do...@hotmail.com>
> >>>>>>>CC: axis-user@ws.apache.org
> >>>>>>>Subject: Re: Change the Port that Axis Service runs as
> >>>>>>>Date: Thu, 04 Aug 2005 13:07:49 -0500
> >>>>>>>
> >>>>>>>What is the actuall error/exceptions you are seeing?  Before
> >
> >>>you make a
> >
> >>>>>>>request
> >>>>>>>to your client application, can you successfully request the
> >
> >>>services
> >
> >>>>>wsdl
> >>>>>
> >>>>>>>from
> >>>>>>>axis (http://localhost:9090/axis/services/MyPort?wsdl)?
> >>>>>>>
> >>>>>>>Quoting J H <do...@hotmail.com>:
> >>>>>>>
> >>>>>>>
> >>>>>>>>They are both setup to use different URI's, but I think what is
> >>>>>
> >>>>>going on
> >>>>>
> >>>>>>>is
> >>>>>>>
> >>>>>>>>that the first webapp is listening through port 8080 for slide
> >>>>>
> >>>>>messages
> >>>>>
> >>>>>>>and
> >>>>>>>
> >>>>>>>>the second, axis, webapp/service is listening for soap
> >
> >>>requests.
> >
> >>>>>>>>When the slide webapp receives a request it starts up a axis
> >
> >>>call to
> >
> >>>>>the
> >>>>>
> >>>>>>>>axis server which is also running on port 8080 and the whole
> >
> >>>tomcat
> >
> >>>>>>>>container becomes unstable.
> >>>>>>>>
> >>>>>>>>I REALLY appreciate your help!  I'm scouring the web looking
> >
> >>>for
> >
> >>>>>someone
> >>>>>
> >>>>>>>who
> >>>>>>>
> >>>>>>>>has done something similar.  It seems like changing the port
> >
> >>>for
> >
> >>>>>axis
> >>>>>
> >>>>>>>would
> >>>>>>>
> >>>>>>>>be something people would commonly do, is that assumption
> >
> >>>incorrect?
> >
> >>>>>>>>Thanks,
> >>>>>>>>Jeff
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>From: James Wilson <wi...@ociweb.com>
> >>>>>>>>>Reply-To: axis-user@ws.apache.org
> >>>>>>>>>To: axis-user@ws.apache.org
> >>>>>>>>>Subject: Re: Change the Port that Axis Service runs as
> >>>>>>>>>Date: Thu, 04 Aug 2005 11:28:44 -0500
> >>>>>>>>>
> >>>>>>>>>This is sounding more and more like a it's not really an Axis
> >>>>>
> >>>>>question,
> >>>>>
> >>>>>>>but
> >>>>>>>
> >>>>>>>>>a
> >>>>>>>>>servlet container question.
> >>>>>>>>>
> >>>>>>>>>I'm assuming when you say port, you're talking about TCP/IP
> >
> >>>port.
> >
> >>>>>The
> >>>>>
> >>>>>>>port
> >>>>>>>
> >>>>>>>>>is
> >>>>>>>>>maintained by the servlet container.  If you are developing
> >
> >>>two
> >
> >>>>>WARs at
> >>>>>
> >>>>>>>the
> >>>>>>>
> >>>>>>>>>same time, I recommend deploying both to the same instance of
> >>>>>
> >>>>>Tomcat
> >>>>>
> >>>>>>>(or
> >>>>>>>
> >>>>>>>>>some
> >>>>>>>>>other container).  Then you would access the two web
> >
> >>>applications
> >
> >>>>>via
> >>>>>
> >>>>>>>the
> >>>>>>>
> >>>>>>>>>same
> >>>>>>>>>port, but different URI
> >>>>>>>>>    http://localhost:8080/axis
> >>>>>>>>>    http://localhost:8080/interface
> >>>>>>>>>
> >>>>>>>>>where one war was axis.war and the other was interface.war.
> >>>>>>>>>
> >>>>>>>>>Too answer your question about changing the port, Tomcat
> >
> >>>controls
> >
> >>>>>this
> >>>>>
> >>>>>>>in
> >>>>>>>
> >>>>>>>>>CATALINA_HOME/conf/server.xml.  Look for the <Connector>
> >
> >>>element.
> >
> >>>>>You
> >>>>>
> >>>>>>>can
> >>>>>>>
> >>>>>>>>>learn more about Tomcat administration by following the
> >>>>>
> >>>>>Documentation
> >>>>>
> >>>>>>>link
> >>>>>>>
> >>>>>>>>>for
> >>>>>>>>>the version you are using from this page:
> >>>>>>>
> >>>>>>>http://jakarta.apache.org/tomcat/
> >>>>>>>
> >>>>>>>>>-james
> >>>>>>>>>
> >>>>>>>>>Quoting J H <do...@hotmail.com>:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>>Well, I started out using Eclipse to create WAR files
> >
> >>>for both
> >
> >>>>>>>>>>webapplications (axis and interface), but I never ran
> >
> >>>the two in
> >
> >>>>>>>unison
> >>>>>>>
> >>>>>>>>>>through Eclipse.
> >>>>>>>>>>
> >>>>>>>>>>Is there a way to change the port that a servlet runs on?
> >>>>>>>>>>
> >>>>>>>>>>Thanks,
> >>>>>>>>>>Jeff
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>>From: James Wilson <wi...@ociweb.com>
> >>>>>>>>>>>Reply-To: axis-user@ws.apache.org
> >>>>>>>>>>>To: axis-user@ws.apache.org
> >>>>>>>>>>>Subject: Re: Change the Port that Axis Service runs as
> >>>>>>>>>>>Date: Thu, 04 Aug 2005 07:38:56 -0500
> >>>>>>>>>>>
> >>>>>>>>>>>I haven't been using Axis all that long either.  However I
> >>>>>
> >>>>>don't
> >>>>>
> >>>>>>>think
> >>>>>>>
> >>>>>>>>>Axis
> >>>>>>>>>
> >>>>>>>>>>>itself can run on a port.  Thus the application
> >
> >>>fighting over
> >
> >>>>>port
> >>>>>
> >>>>>>>8080
> >>>>>>>
> >>>>>>>>>>>would
> >>>>>>>>>>>be your servlet container.  Are you starting Tomcat via an
> >>>>>
> >>>>>Eclipse
> >>>>>
> >>>>>>>>>plugin?
> >>>>>>>>>
> >>>>>>>>>>>hope it helps,
> >>>>>>>>>>>james
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>Quoting J H <do...@hotmail.com>:
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>>Hi Everyone.  This is my first time e-mailing this
> >
> >>>list,
> >
> >>>>>because
> >>>>>
> >>>>>>>the
> >>>>>>>
> >>>>>>>>>>>>documentation out there for this project has been
> >
> >>>fantastic!
> >
> >>>>>>>>>(Thanks to
> >>>>>>>>>
> >>>>>>>>>>>the
> >>>>>>>>>>>
> >>>>>>>>>>>>Axis and Eclipse participants).
> >>>>>>>>>>>>
> >>>>>>>>>>>>I have built a self-contained web application
> >
> >>>(service) that
> >
> >>>>>>>>>implements
> >>>>>>>>>
> >>>>>>>>>>>the
> >>>>>>>>>>>
> >>>>>>>>>>>>Axis libraries.  I have another webapplication that
> >
> >>>I would
> >
> >>>>>like
> >>>>>
> >>>>>>>to
> >>>>>>>
> >>>>>>>>>be
> >>>>>>>>>
> >>>>>>>>>>>able
> >>>>>>>>>>>
> >>>>>>>>>>>>to run on the same application server that talks to
> >
> >>>this
> >
> >>>>>custom
> >>>>>
> >>>>>>>axis
> >>>>>>>
> >>>>>>>>>>>service
> >>>>>>>>>>>
> >>>>>>>>>>>>to send messages back and forth to my client.  It
> >
> >>>seems that
> >
> >>>>>the
> >>>>>
> >>>>>>>two
> >>>>>>>
> >>>>>>>>>>>>applications are fighting over the default port
> >
> >>>8080.  I
> >
> >>>>>have
> >>>>>
> >>>>>>>>>confirmed
> >>>>>>>>>
> >>>>>>>>>>>this
> >>>>>>>>>>>
> >>>>>>>>>>>>by installing the 2 webservices on different
> >
> >>>machines, and
> >
> >>>>>the
> >>>>>
> >>>>>>>>>solution
> >>>>>>>>>
> >>>>>>>>>>>>works great.  I know it must be a simple solution,
> >
> >>>but I
> >
> >>>>>can't
> >>>>>
> >>>>>>>find
> >>>>>>>
> >>>>>>>>>out
> >>>>>>>>>
> >>>>>>>>>>>>anywhere how to change the port that Axis runs as.
> >>>>>>>>>>>>
> >>>>>>>>>>>>Thanks!
> >>>>>>>>>>>>Jeff
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >
> >
> >
> > --
> > ------------------------------------------------------------------------
> > Dipl.-Inform. Joachim Götze         email: j_goetze@informatik.uni-kl.de
> > University of Kaiserslautern        phone: ++49-(0)631-205-3979
> > Department of Computer Science      fax:   ++49-(0)631-205-3056
> > PO Box 3049                         www:   http://www.icsy.de
> > D-67653 Kaiserslautern, Germany
> > ------------------------------------------------------------------------
>
> - --
> - ------------------------------------------------------------------------
> Dipl.-Inform. Joachim Götze         email: j_goetze@informatik.uni-kl.de
> University of Kaiserslautern        phone: ++49-(0)631-205-3979
> Department of Computer Science      fax:   ++49-(0)631-205-3056
> PO Box 3049                         www:   http://www.icsy.de
> D-67653 Kaiserslautern, Germany
> - ------------------------------------------------------------------------
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFC+Z/Pgyvot+f33J4RAmVdAJ4+NyJtrhrLHMZCULof/5xYWNwLbACgvBOs
> 8E1LGwoOJi3CfJpu0CiQLhE=
> =F7XM
> -----END PGP SIGNATURE-----
>

Re: Change the Port that Axis Service runs as

Posted by Joachim Goetze <j_...@informatik.uni-kl.de>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

James Wilson wrote:
> 
> Quoting Joachim Goetze <j_...@informatik.uni-kl.de>:
> 
> 
> Hi,
> 
> if I am not mistaken the Web.XML is part of the Tomcat-Config. So the
> 
> 
>> web.xml is part of your application.  It is not part of the container
>> configuration.  Unless you look at it from the perspective of your application
>> telling the container how to configure it.

Right, that is my perspective. But there is only a Web.XML in the Axis
folder, so it is Axis that is configured here and not a Web Service of Axis.

> only thing you can "load on startup" here is Axis, not the Web Services
> managed by Axis. That is why I was asking yesterday, if there is a
> chance to load a Web Service immediately after the Axis startup
> (although I do not care about any order of startup, which makes your
> case even more complex).
> 
> 
>> I don't know what you would need to start.  Start tomcat and your service is
>> ready to recieve requests.  There is no need for load-on-startup.  If you are
>> writing a web application that is a client and you want it to start making
>> requests to a service on startup, then look at implementing a
>> ServletContextListener.

Complex applications may require services that do some organizational
stuff on startup, so thats why I am looking for such a solution. Sure my
 web application is ready for request immediately after the start of the
container, but what if I need to do something time consuming prior the
first request?

Regards,
Jo

> Regards,
> Jo
> 
> 
> 
> 
> J H wrote:
> 
>>I found something incredibly interesting, by chance this weekend.  If I
>>startup the 2nd axis webapp first and then start the 1st webapp after
>>that, everything works fine on the same machine.  This must have been
>>why the two webapps worked fine on different machines.  I started
>>playing with the load-on-startup tag in the web.xml to see if I could
>>setup which webapp was loaded first.
> 
> 
>> Try alphaticially naming the one you want to load first.  Assuming you are
>> dropping the war files into CATALINA_HOME/webapps or using
>> CATALINA_HOME/conf/server/localhost maybe Tomcat will find and load them in
>> that order.
> 
> 
>>   It hasn't worked yet, but I might
>>be doing something wrong.
> 
>>Jeff
> 
> 
>>>From: James Wilson <wi...@ociweb.com>
>>>Reply-To: axis-user@ws.apache.org
>>>To: axis-user@ws.apache.org
>>>Subject: Re: Change the Port that Axis Service runs as
>>>Date: Fri, 05 Aug 2005 12:01:53 -0500
> 
>>>My last thought is that maybe there something in WebDAV that is
>>>getting in the
>>>way.
> 
>>>-James
> 
> 
>>>Quoting J H <do...@hotmail.com>:
> 
> 
>>>>Thanks for trying this on your computer!  I have basically the same
>>>>configuration, JDK 5, Tomcat 5.5, and Axis 1.2.1.
>>>>
>>>>1st Webapp
>>>>------------------
>>>>Slide
>>>>(Handles External Webdav Requests via
> 
>>>http://localhost:8080/mywebdav, makes
> 
>>>>axis/soap calls to the second webapp inside of the Tomcat container
> 
>>>to get
> 
>>>>the data from the database.)
>>>>
>>>>
>>>>2nd Webapp
>>>>------------------
>>>>Self Contained Axis Webapp (I just made my own webapp and included
> 
>>>the axis
> 
>>>>jars in the web-inf/lib directory)
>>>>(Handles Requests from the 1st Webapp, via
>>>>http://localhost:8080/myservice/services/MyService and retrieves
> 
>>>data from a
> 
>>>>database via JDBC)
>>>>
>>>>
>>>>
>>>>>From: James Wilson <wi...@ociweb.com>
>>>>>Reply-To: axis-user@ws.apache.org
>>>>>To: axis-user@ws.apache.org
>>>>>Subject: Re: Change the Port that Axis Service runs as
>>>>>Date: Fri, 05 Aug 2005 08:06:07 -0500
>>>>>
>>>>>I just setup a quick sample.  Using Axis 1.2.1 and Tomcat 5.5
> 
>>>running in
> 
>>>>>JRE 5.0
>>>>>I installed a second web app into tomcat.  It worked.
>>>>>
>>>>>I installed the two web apps by putting XML config files under
>>>>>CATALINA_HOME/conf/Catalina/localhost/ like below.  Both pointed at
> 
>>>two
> 
>>>>>different exploded-war directories
>>>>>    <?xml version="1.0" encoding="utf-8"?>
>>>>>    <Context docBase="C:/dev/client/war" path="/client"
> 
>>>reloadable="true">
> 
>>>>>    </Context>
>>>>>
>>>>>I then start Tomcat using the this command (allows remote debug from
>>>>>eclipse):
>>>>>    %CATALINA_HOME%\bin\catalina.bat jpda start
>>>>>
>>>>>This is my standard development procedure.  My client connected to
> 
>>>the Axis
> 
>>>>>server via:
>>>>>   MyServiceLocator loc = new MyServiceLocator();
>>>>>
>>>>
>>loc.setMyPortEndpointAddress("http://127.0.0.1:8080/server/services/MyPort");
> 
>>>>>   MyPortType port = loc.getMyPort();
>>>>>   port.invokeMyFunction();
>>>>>
>>>>>
>>>>>Hows is your procedure different?  I don't know if it's important, but
>>>>>during
>>>>>this test I had all of the Axis jar dependencies in both
> 
>>>war/WEB-INF/lib
> 
>>>>>directories (duplicated).
>>>>>
>>>>>Quoting J H <do...@hotmail.com>:
>>>>>
>>>>>
>>>>>>Here's is the complete stack trace...
>>>>>>
>>>>>>Again, the scenario is that when I install the 2 wars on seperate
>>>>>
>>>>>machines,
>>>>>
>>>>>>everything works fine.  When I install the wars on the same
> 
>>>machine,
> 
>>>>>nothing
>>>>>
>>>>>>works and I get the message pasted below after about 5 minutes
> 
>>>from the
> 
>>>>>>first client axis/soap call.
>>>>>>
>>>>>>My theory is that both webapplications are serving out to port
> 
>>>8080 and
> 
>>>>>when
>>>>>
>>>>>>the axis client is trying to communicate with the axis server it
>>>>>
>>>>>connects to
>>>>>
>>>>>>port 8080, but it is talking to the wrong webapp.  That is why
>>>>>
>>>>>everything
>>>>>
>>>>>>works fine when I move the webapps to different machines.
>>>>>>
>>>>>>Thanks again,
>>>>>>Jeff
>>>>>>
>>>>>>Caught SOAPException :; nested exception is:
>>>>>>    java.net.SocketTimeoutException: Read timed out
>>>>>>AxisFault
>>>>>>faultCode:
>>>>>
>>>>>{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>>>>>
>>>>>>faultSubcode:
>>>>>>faultString: java.net.SocketTimeoutException: Read timed out
>>>>>>faultActor:
>>>>>>faultNode:
>>>>>>faultDetail:
>>>>>>
>>>>>
>>>{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException:
> 
>>>>>>Read timed out
>>>>>>    at java.net.SocketInputStream.socketRead0(Native Method)
>>>>>>    at java.net.SocketInputStream.read(SocketInputStream.java:129)
>>>>>>    at
> 
>>>java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> 
>>>>>>    at
> 
>>>java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
>>>>>
>>>>>>    at
>>>>>>
>>>>
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> 
>>>>>>    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>>>>>>    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>>>>>>    at
> 
>>>org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> 
>>>>>>    at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
>>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2748)
>>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2424)
>>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2347)
>>>>>>    at org.apache.axis.client.Call.invoke(Call.java:1804)
>>>>>>    at
> 
>>>com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> 
>>>>>>    at
>>>>>>
>>>>
>>com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> 
>>>>>>    at
>>>>
>>>>org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
>>>>
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> 
>>>>>>    at
> 
>>>org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> 
>>>>>>    at
> 
>>>org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> 
>>>>>>    at org.apache.slide.common.Domain.init(Domain.java:478)
>>>>>>    at org.apache.slide.common.Domain.init(Domain.java:412)
>>>>>>    at org.apache.slide.common.Domain.init(Domain.java:375)
>>>>>>    at
> 
>>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> 
>>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>>>>>>    at
> 
>>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>>>>
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> 
>>>>>>    at
>>>>>>
>>>>
>>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>>>>>
>>>>>>    at
> 
>>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>>>>>
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>>>>>
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
>>>>
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>>>>
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> 
>>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>    at
>>>>>>
>>>>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 
>>>>>>    at
>>>>>>
>>>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> 
>>>>>>    {http://xml.apache.org/axis/}hostname:win2kjeff
>>>>>>
>>>>>>java.net.SocketTimeoutException: Read timed out
>>>>>>    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
>>>>>>    at
>>>>>
>>>>>org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
>>>>>
>>>>>>    at
>>>>>>
>>>>
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> 
>>>>>>    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>>>>>>    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>>>>>>    at
> 
>>>org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> 
>>>>>>    at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
>>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2748)
>>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2424)
>>>>>>    at org.apache.axis.client.Call.invoke(Call.java:2347)
>>>>>>    at org.apache.axis.client.Call.invoke(Call.java:1804)
>>>>>>    at
> 
>>>com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> 
>>>>>>    at
>>>>>>
>>>>
>>com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> 
>>>>>>    at
>>>>
>>>>org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
>>>>
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> 
>>>>>>    at
> 
>>>org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> 
>>>>>>    at
> 
>>>org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> 
>>>>>>    at org.apache.slide.common.Domain.init(Domain.java:478)
>>>>>>    at org.apache.slide.common.Domain.init(Domain.java:412)
>>>>>>    at org.apache.slide.common.Domain.init(Domain.java:375)
>>>>>>    at
> 
>>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> 
>>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>>>>>>    at
> 
>>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>>>>
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> 
>>>>>>    at
>>>>>>
>>>>
>>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>>>>>
>>>>>>    at
> 
>>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>>>>>
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>>>>>
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
>>>>
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>>>>
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> 
>>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>    at
>>>>>>
>>>>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 
>>>>>>    at
>>>>>>
>>>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> 
>>>>>>Caused by: java.net.SocketTimeoutException: Read timed out
>>>>>>    at java.net.SocketInputStream.socketRead0(Native Method)
>>>>>>    at java.net.SocketInputStream.read(SocketInputStream.java:129)
>>>>>>    at
> 
>>>java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> 
>>>>>>    at
> 
>>>java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
>>>>>
>>>>>>    ... 42 more
>>>>>>org.apache.slide.common.ServiceAccessException: Service
>>>>>>com.project.slide.store.SecurityStore@1071521 access error : ;
> 
>>>nested
> 
>>>>>>exception is:
>>>>>>    java.net.SocketTimeoutException: Read timed out
>>>>>>    at
>>>>>>
>>>>
>>com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:135)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> 
>>>>>>    at
>>>>
>>>>org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
>>>>
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> 
>>>>>>    at
> 
>>>org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> 
>>>>>>    at
> 
>>>org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> 
>>>>>>    at org.apache.slide.common.Domain.init(Domain.java:478)
>>>>>>    at org.apache.slide.common.Domain.init(Domain.java:412)
>>>>>>    at org.apache.slide.common.Domain.init(Domain.java:375)
>>>>>>    at
> 
>>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> 
>>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>>>>>>    at
> 
>>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>>>>
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> 
>>>>>>    at
>>>>>>
>>>>
>>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>>>>>
>>>>>>    at
> 
>>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>>>>>
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>>>>>
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
>>>>
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>>>>
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> 
>>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>    at
>>>>>>
>>>>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 
>>>>>>    at
>>>>>>
>>>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> 
>>>>>>org.apache.slide.structure.ObjectNotFoundException: No object
> 
>>>found at
> 
>>>>>>/actions
>>>>>>    at
>>>>>>
>>>>
> slidestore.reference.MemoryDescriptorsStore.retrieveObject(MemoryDescriptorsStore.java:251)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:539)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:177)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.NamespaceConfig.getActionNode(NamespaceConfig.java:1106)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.NamespaceConfig.initializeNamespaceConfig(NamespaceConfig.java:596)
> 
>>>>>>    at
>>>>
>>>>org.apache.slide.common.Namespace.loadConfiguration(Namespace.java:888)
>>>>
>>>>>>    at
> 
>>>org.apache.slide.common.Domain.initNamespace(Domain.java:864)
> 
>>>>>>    at org.apache.slide.common.Domain.init(Domain.java:478)
>>>>>>    at org.apache.slide.common.Domain.init(Domain.java:412)
>>>>>>    at org.apache.slide.common.Domain.init(Domain.java:375)
>>>>>>    at
> 
>>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> 
>>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>>>>>>    at
> 
>>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>>>>
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> 
>>>>>>    at
>>>>>>
>>>>
>>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>>>>>
>>>>>>    at
> 
>>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>>>>>
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>>>>>
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
>>>>
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>>>>
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> 
>>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>    at
>>>>>>
>>>>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 
>>>>>>    at
>>>>>>
>>>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> 
>>>>>>java.lang.NullPointerException
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> 
>>>>>>    at
> 
>>>org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> 
>>>>>>    at
> 
>>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> 
>>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>>>>>>    at
> 
>>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>>>>
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> 
>>>>>>    at
>>>>>>
>>>>
>>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>>>>>
>>>>>>    at
> 
>>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>>>>>
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>>>>>
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
>>>>
>>>>>>    at
>>>>
>>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>>>>
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> 
>>>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>    at
>>>>>>
>>>>
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 
>>>>>>    at
>>>>>>
>>>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>>>>>>    at java.lang.reflect.Method.invoke(Method.java:324)
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> 
>>>>>>java.lang.NullPointerException
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> 
>>>>>>    at
> 
>>>org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> 
>>>>>>    at
> 
>>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> 
>>>>>>    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>>>>>>    at
> 
>>>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>>>>
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>>>>
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>>>>
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 
>>>>>>    at
>>>>>
>>>>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>>>>
>>>>>>    at
>>>>
>>>>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>>>>
>>>>>>    at
>>>>>>
>>>>
>>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
> 
>>>>>>    at
>>>>>>
>>>>
>>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> 
>>>>>>    at
>>>>>>
>>>>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
> 
>>>>>>    at java.lang.Thread.run(Thread.java:534)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>From: James Wilson <wi...@ociweb.com>
>>>>>>>Reply-To: axis-user@ws.apache.org
>>>>>>>To: axis-user@ws.apache.org, J H <do...@hotmail.com>
>>>>>>>CC: axis-user@ws.apache.org
>>>>>>>Subject: Re: Change the Port that Axis Service runs as
>>>>>>>Date: Thu, 04 Aug 2005 13:07:49 -0500
>>>>>>>
>>>>>>>What is the actuall error/exceptions you are seeing?  Before
> 
>>>you make a
> 
>>>>>>>request
>>>>>>>to your client application, can you successfully request the
> 
>>>services
> 
>>>>>wsdl
>>>>>
>>>>>>>from
>>>>>>>axis (http://localhost:9090/axis/services/MyPort?wsdl)?
>>>>>>>
>>>>>>>Quoting J H <do...@hotmail.com>:
>>>>>>>
>>>>>>>
>>>>>>>>They are both setup to use different URI's, but I think what is
>>>>>
>>>>>going on
>>>>>
>>>>>>>is
>>>>>>>
>>>>>>>>that the first webapp is listening through port 8080 for slide
>>>>>
>>>>>messages
>>>>>
>>>>>>>and
>>>>>>>
>>>>>>>>the second, axis, webapp/service is listening for soap
> 
>>>requests.
> 
>>>>>>>>When the slide webapp receives a request it starts up a axis
> 
>>>call to
> 
>>>>>the
>>>>>
>>>>>>>>axis server which is also running on port 8080 and the whole
> 
>>>tomcat
> 
>>>>>>>>container becomes unstable.
>>>>>>>>
>>>>>>>>I REALLY appreciate your help!  I'm scouring the web looking
> 
>>>for
> 
>>>>>someone
>>>>>
>>>>>>>who
>>>>>>>
>>>>>>>>has done something similar.  It seems like changing the port
> 
>>>for
> 
>>>>>axis
>>>>>
>>>>>>>would
>>>>>>>
>>>>>>>>be something people would commonly do, is that assumption
> 
>>>incorrect?
> 
>>>>>>>>Thanks,
>>>>>>>>Jeff
>>>>>>>>
>>>>>>>>
>>>>>>>>>From: James Wilson <wi...@ociweb.com>
>>>>>>>>>Reply-To: axis-user@ws.apache.org
>>>>>>>>>To: axis-user@ws.apache.org
>>>>>>>>>Subject: Re: Change the Port that Axis Service runs as
>>>>>>>>>Date: Thu, 04 Aug 2005 11:28:44 -0500
>>>>>>>>>
>>>>>>>>>This is sounding more and more like a it's not really an Axis
>>>>>
>>>>>question,
>>>>>
>>>>>>>but
>>>>>>>
>>>>>>>>>a
>>>>>>>>>servlet container question.
>>>>>>>>>
>>>>>>>>>I'm assuming when you say port, you're talking about TCP/IP
> 
>>>port.
> 
>>>>>The
>>>>>
>>>>>>>port
>>>>>>>
>>>>>>>>>is
>>>>>>>>>maintained by the servlet container.  If you are developing
> 
>>>two
> 
>>>>>WARs at
>>>>>
>>>>>>>the
>>>>>>>
>>>>>>>>>same time, I recommend deploying both to the same instance of
>>>>>
>>>>>Tomcat
>>>>>
>>>>>>>(or
>>>>>>>
>>>>>>>>>some
>>>>>>>>>other container).  Then you would access the two web
> 
>>>applications
> 
>>>>>via
>>>>>
>>>>>>>the
>>>>>>>
>>>>>>>>>same
>>>>>>>>>port, but different URI
>>>>>>>>>    http://localhost:8080/axis
>>>>>>>>>    http://localhost:8080/interface
>>>>>>>>>
>>>>>>>>>where one war was axis.war and the other was interface.war.
>>>>>>>>>
>>>>>>>>>Too answer your question about changing the port, Tomcat
> 
>>>controls
> 
>>>>>this
>>>>>
>>>>>>>in
>>>>>>>
>>>>>>>>>CATALINA_HOME/conf/server.xml.  Look for the <Connector>
> 
>>>element.
> 
>>>>>You
>>>>>
>>>>>>>can
>>>>>>>
>>>>>>>>>learn more about Tomcat administration by following the
>>>>>
>>>>>Documentation
>>>>>
>>>>>>>link
>>>>>>>
>>>>>>>>>for
>>>>>>>>>the version you are using from this page:
>>>>>>>
>>>>>>>http://jakarta.apache.org/tomcat/
>>>>>>>
>>>>>>>>>-james
>>>>>>>>>
>>>>>>>>>Quoting J H <do...@hotmail.com>:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>Well, I started out using Eclipse to create WAR files
> 
>>>for both
> 
>>>>>>>>>>webapplications (axis and interface), but I never ran
> 
>>>the two in
> 
>>>>>>>unison
>>>>>>>
>>>>>>>>>>through Eclipse.
>>>>>>>>>>
>>>>>>>>>>Is there a way to change the port that a servlet runs on?
>>>>>>>>>>
>>>>>>>>>>Thanks,
>>>>>>>>>>Jeff
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>From: James Wilson <wi...@ociweb.com>
>>>>>>>>>>>Reply-To: axis-user@ws.apache.org
>>>>>>>>>>>To: axis-user@ws.apache.org
>>>>>>>>>>>Subject: Re: Change the Port that Axis Service runs as
>>>>>>>>>>>Date: Thu, 04 Aug 2005 07:38:56 -0500
>>>>>>>>>>>
>>>>>>>>>>>I haven't been using Axis all that long either.  However I
>>>>>
>>>>>don't
>>>>>
>>>>>>>think
>>>>>>>
>>>>>>>>>Axis
>>>>>>>>>
>>>>>>>>>>>itself can run on a port.  Thus the application
> 
>>>fighting over
> 
>>>>>port
>>>>>
>>>>>>>8080
>>>>>>>
>>>>>>>>>>>would
>>>>>>>>>>>be your servlet container.  Are you starting Tomcat via an
>>>>>
>>>>>Eclipse
>>>>>
>>>>>>>>>plugin?
>>>>>>>>>
>>>>>>>>>>>hope it helps,
>>>>>>>>>>>james
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>Quoting J H <do...@hotmail.com>:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>Hi Everyone.  This is my first time e-mailing this
> 
>>>list,
> 
>>>>>because
>>>>>
>>>>>>>the
>>>>>>>
>>>>>>>>>>>>documentation out there for this project has been
> 
>>>fantastic!
> 
>>>>>>>>>(Thanks to
>>>>>>>>>
>>>>>>>>>>>the
>>>>>>>>>>>
>>>>>>>>>>>>Axis and Eclipse participants).
>>>>>>>>>>>>
>>>>>>>>>>>>I have built a self-contained web application
> 
>>>(service) that
> 
>>>>>>>>>implements
>>>>>>>>>
>>>>>>>>>>>the
>>>>>>>>>>>
>>>>>>>>>>>>Axis libraries.  I have another webapplication that
> 
>>>I would
> 
>>>>>like
>>>>>
>>>>>>>to
>>>>>>>
>>>>>>>>>be
>>>>>>>>>
>>>>>>>>>>>able
>>>>>>>>>>>
>>>>>>>>>>>>to run on the same application server that talks to
> 
>>>this
> 
>>>>>custom
>>>>>
>>>>>>>axis
>>>>>>>
>>>>>>>>>>>service
>>>>>>>>>>>
>>>>>>>>>>>>to send messages back and forth to my client.  It
> 
>>>seems that
> 
>>>>>the
>>>>>
>>>>>>>two
>>>>>>>
>>>>>>>>>>>>applications are fighting over the default port
> 
>>>8080.  I
> 
>>>>>have
>>>>>
>>>>>>>>>confirmed
>>>>>>>>>
>>>>>>>>>>>this
>>>>>>>>>>>
>>>>>>>>>>>>by installing the 2 webservices on different
> 
>>>machines, and
> 
>>>>>the
>>>>>
>>>>>>>>>solution
>>>>>>>>>
>>>>>>>>>>>>works great.  I know it must be a simple solution,
> 
>>>but I
> 
>>>>>can't
>>>>>
>>>>>>>find
>>>>>>>
>>>>>>>>>out
>>>>>>>>>
>>>>>>>>>>>>anywhere how to change the port that Axis runs as.
>>>>>>>>>>>>
>>>>>>>>>>>>Thanks!
>>>>>>>>>>>>Jeff
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
> 
> 
> 
> --
> ------------------------------------------------------------------------
> Dipl.-Inform. Joachim Götze         email: j_goetze@informatik.uni-kl.de
> University of Kaiserslautern        phone: ++49-(0)631-205-3979
> Department of Computer Science      fax:   ++49-(0)631-205-3056
> PO Box 3049                         www:   http://www.icsy.de
> D-67653 Kaiserslautern, Germany
> ------------------------------------------------------------------------

- --
- ------------------------------------------------------------------------
Dipl.-Inform. Joachim Götze         email: j_goetze@informatik.uni-kl.de
University of Kaiserslautern        phone: ++49-(0)631-205-3979
Department of Computer Science      fax:   ++49-(0)631-205-3056
PO Box 3049                         www:   http://www.icsy.de
D-67653 Kaiserslautern, Germany
- ------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC+Z/Pgyvot+f33J4RAmVdAJ4+NyJtrhrLHMZCULof/5xYWNwLbACgvBOs
8E1LGwoOJi3CfJpu0CiQLhE=
=F7XM
-----END PGP SIGNATURE-----

Re: Change the Port that Axis Service runs as

Posted by James Wilson <wi...@ociweb.com>.

Quoting Joachim Goetze <j_...@informatik.uni-kl.de>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> if I am not mistaken the Web.XML is part of the Tomcat-Config. So the

web.xml is part of your application.  It is not part of the container
configuration.  Unless you look at it from the perspective of your application
telling the container how to configure it.

> only thing you can "load on startup" here is Axis, not the Web Services
> managed by Axis. That is why I was asking yesterday, if there is a
> chance to load a Web Service immediately after the Axis startup
> (although I do not care about any order of startup, which makes your
> case even more complex).

I don't know what you would need to start.  Start tomcat and your service is
ready to recieve requests.  There is no need for load-on-startup.  If you are
writing a web application that is a client and you want it to start making
requests to a service on startup, then look at implementing a
ServletContextListener.

>
> Regards,
> Jo
>
>
>
>
> J H wrote:
> > I found something incredibly interesting, by chance this weekend.  If I
> > startup the 2nd axis webapp first and then start the 1st webapp after
> > that, everything works fine on the same machine.  This must have been
> > why the two webapps worked fine on different machines.  I started
> > playing with the load-on-startup tag in the web.xml to see if I could
> > setup which webapp was loaded first.

Try alphaticially naming the one you want to load first.  Assuming you are
dropping the war files into CATALINA_HOME/webapps or using
CATALINA_HOME/conf/server/localhost maybe Tomcat will find and load them in
that order.

> >    It hasn't worked yet, but I might
> > be doing something wrong.
> >
> > Jeff
> >
> >> From: James Wilson <wi...@ociweb.com>
> >> Reply-To: axis-user@ws.apache.org
> >> To: axis-user@ws.apache.org
> >> Subject: Re: Change the Port that Axis Service runs as
> >> Date: Fri, 05 Aug 2005 12:01:53 -0500
> >>
> >> My last thought is that maybe there something in WebDAV that is
> >> getting in the
> >> way.
> >>
> >> -James
> >>
> >>
> >> Quoting J H <do...@hotmail.com>:
> >>
> >> > Thanks for trying this on your computer!  I have basically the same
> >> > configuration, JDK 5, Tomcat 5.5, and Axis 1.2.1.
> >> >
> >> > 1st Webapp
> >> > ------------------
> >> > Slide
> >> > (Handles External Webdav Requests via
> >> http://localhost:8080/mywebdav, makes
> >> > axis/soap calls to the second webapp inside of the Tomcat container
> >> to get
> >> > the data from the database.)
> >> >
> >> >
> >> > 2nd Webapp
> >> > ------------------
> >> > Self Contained Axis Webapp (I just made my own webapp and included
> >> the axis
> >> > jars in the web-inf/lib directory)
> >> > (Handles Requests from the 1st Webapp, via
> >> > http://localhost:8080/myservice/services/MyService and retrieves
> >> data from a
> >> > database via JDBC)
> >> >
> >> >
> >> > >From: James Wilson <wi...@ociweb.com>
> >> > >Reply-To: axis-user@ws.apache.org
> >> > >To: axis-user@ws.apache.org
> >> > >Subject: Re: Change the Port that Axis Service runs as
> >> > >Date: Fri, 05 Aug 2005 08:06:07 -0500
> >> > >
> >> > >I just setup a quick sample.  Using Axis 1.2.1 and Tomcat 5.5
> >> running in
> >> > >JRE 5.0
> >> > >I installed a second web app into tomcat.  It worked.
> >> > >
> >> > >I installed the two web apps by putting XML config files under
> >> > >CATALINA_HOME/conf/Catalina/localhost/ like below.  Both pointed at
> >> two
> >> > >different exploded-war directories
> >> > >     <?xml version="1.0" encoding="utf-8"?>
> >> > >     <Context docBase="C:/dev/client/war" path="/client"
> >> reloadable="true">
> >> > >     </Context>
> >> > >
> >> > >I then start Tomcat using the this command (allows remote debug from
> >> > >eclipse):
> >> > >     %CATALINA_HOME%\bin\catalina.bat jpda start
> >> > >
> >> > >This is my standard development procedure.  My client connected to
> >> the Axis
> >> > >server via:
> >> > >    MyServiceLocator loc = new MyServiceLocator();
> >> > >
> >> >
> >>
> >loc.setMyPortEndpointAddress("http://127.0.0.1:8080/server/services/MyPort");
> >>
> >> > >    MyPortType port = loc.getMyPort();
> >> > >    port.invokeMyFunction();
> >> > >
> >> > >
> >> > >Hows is your procedure different?  I don't know if it's important, but
> >> > >during
> >> > >this test I had all of the Axis jar dependencies in both
> >> war/WEB-INF/lib
> >> > >directories (duplicated).
> >> > >
> >> > >Quoting J H <do...@hotmail.com>:
> >> > >
> >> > > > Here's is the complete stack trace...
> >> > > >
> >> > > > Again, the scenario is that when I install the 2 wars on seperate
> >> > >machines,
> >> > > > everything works fine.  When I install the wars on the same
> >> machine,
> >> > >nothing
> >> > > > works and I get the message pasted below after about 5 minutes
> >> from the
> >> > > > first client axis/soap call.
> >> > > >
> >> > > > My theory is that both webapplications are serving out to port
> >> 8080 and
> >> > >when
> >> > > > the axis client is trying to communicate with the axis server it
> >> > >connects to
> >> > > > port 8080, but it is talking to the wrong webapp.  That is why
> >> > >everything
> >> > > > works fine when I move the webapps to different machines.
> >> > > >
> >> > > > Thanks again,
> >> > > > Jeff
> >> > > >
> >> > > > Caught SOAPException :; nested exception is:
> >> > > >     java.net.SocketTimeoutException: Read timed out
> >> > > > AxisFault
> >> > > > faultCode:
> >> > >{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> >> > > > faultSubcode:
> >> > > > faultString: java.net.SocketTimeoutException: Read timed out
> >> > > > faultActor:
> >> > > > faultNode:
> >> > > > faultDetail:
> >> > > >
> >> > >
> >> {http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException:
> >> > > > Read timed out
> >> > > >     at java.net.SocketInputStream.socketRead0(Native Method)
> >> > > >     at java.net.SocketInputStream.read(SocketInputStream.java:129)
> >> > > >     at
> >> java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> >> > > >     at
> >> java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> >>
> >> > > >     at
> >> > >org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> >>
> >> > > >     at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> >> > > >     at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> >> > > >     at
> >> org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> >> > > >     at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> >> > > >     at org.apache.axis.client.Call.invoke(Call.java:2748)
> >> > > >     at org.apache.axis.client.Call.invoke(Call.java:2424)
> >> > > >     at org.apache.axis.client.Call.invoke(Call.java:2347)
> >> > > >     at org.apache.axis.client.Call.invoke(Call.java:1804)
> >> > > >     at
> >> com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> >> > > >     at
> >> > > >
> >> >
> >>
> >com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> >>
> >> > > >     at
> >> >
> >> >org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> >>
> >> > > >     at
> >> org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> >> > > >     at
> >> org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> >> > > >     at org.apache.slide.common.Domain.init(Domain.java:478)
> >> > > >     at org.apache.slide.common.Domain.init(Domain.java:412)
> >> > > >     at org.apache.slide.common.Domain.init(Domain.java:375)
> >> > > >     at
> >> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> >> > > >     at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >> > > >     at
> >> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >>
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> >>
> >> > > >     at
> >> > > >
> >> >
> >> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> >>
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >> > > >     at
> >> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >> > > >     at
> >> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> >>
> >> > > >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> > > >     at
> >> > > >
> >> >
> >>
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>
> >> > > >     at java.lang.reflect.Method.invoke(Method.java:324)
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> >>
> >> > > >
> >> > > >     {http://xml.apache.org/axis/}hostname:win2kjeff
> >> > > >
> >> > > > java.net.SocketTimeoutException: Read timed out
> >> > > >     at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> >> > > >     at
> >> > >org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> >>
> >> > > >     at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> >> > > >     at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> >> > > >     at
> >> org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> >> > > >     at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> >> > > >     at org.apache.axis.client.Call.invoke(Call.java:2748)
> >> > > >     at org.apache.axis.client.Call.invoke(Call.java:2424)
> >> > > >     at org.apache.axis.client.Call.invoke(Call.java:2347)
> >> > > >     at org.apache.axis.client.Call.invoke(Call.java:1804)
> >> > > >     at
> >> com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> >> > > >     at
> >> > > >
> >> >
> >>
> >com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> >>
> >> > > >     at
> >> >
> >> >org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> >>
> >> > > >     at
> >> org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> >> > > >     at
> >> org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> >> > > >     at org.apache.slide.common.Domain.init(Domain.java:478)
> >> > > >     at org.apache.slide.common.Domain.init(Domain.java:412)
> >> > > >     at org.apache.slide.common.Domain.init(Domain.java:375)
> >> > > >     at
> >> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> >> > > >     at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >> > > >     at
> >> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >>
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> >>
> >> > > >     at
> >> > > >
> >> >
> >> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> >>
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >> > > >     at
> >> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >> > > >     at
> >> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> >>
> >> > > >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> > > >     at
> >> > > >
> >> >
> >>
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>
> >> > > >     at java.lang.reflect.Method.invoke(Method.java:324)
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> >>
> >> > > > Caused by: java.net.SocketTimeoutException: Read timed out
> >> > > >     at java.net.SocketInputStream.socketRead0(Native Method)
> >> > > >     at java.net.SocketInputStream.read(SocketInputStream.java:129)
> >> > > >     at
> >> java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> >> > > >     at
> >> java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> >>
> >> > > >     at
> >> > >org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> >> > > >     ... 42 more
> >> > > > org.apache.slide.common.ServiceAccessException: Service
> >> > > > com.project.slide.store.SecurityStore@1071521 access error : ;
> >> nested
> >> > > > exception is:
> >> > > >     java.net.SocketTimeoutException: Read timed out
> >> > > >     at
> >> > > >
> >> >
> >>
> >com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:135)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> >>
> >> > > >     at
> >> >
> >> >org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> >>
> >> > > >     at
> >> org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> >> > > >     at
> >> org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> >> > > >     at org.apache.slide.common.Domain.init(Domain.java:478)
> >> > > >     at org.apache.slide.common.Domain.init(Domain.java:412)
> >> > > >     at org.apache.slide.common.Domain.init(Domain.java:375)
> >> > > >     at
> >> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> >> > > >     at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >> > > >     at
> >> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >>
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> >>
> >> > > >     at
> >> > > >
> >> >
> >> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> >>
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >> > > >     at
> >> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >> > > >     at
> >> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> >>
> >> > > >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> > > >     at
> >> > > >
> >> >
> >>
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>
> >> > > >     at java.lang.reflect.Method.invoke(Method.java:324)
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> >>
> >> > > > org.apache.slide.structure.ObjectNotFoundException: No object
> >> found at
> >> > > > /actions
> >> > > >     at
> >> > > >
> >> >
> >>
>
>slidestore.reference.MemoryDescriptorsStore.retrieveObject(MemoryDescriptorsStore.java:251)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:539)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:177)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.NamespaceConfig.getActionNode(NamespaceConfig.java:1106)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.NamespaceConfig.initializeNamespaceConfig(NamespaceConfig.java:596)
> >>
> >> > > >     at
> >> >
> >> >org.apache.slide.common.Namespace.loadConfiguration(Namespace.java:888)
> >> > > >     at
> >> org.apache.slide.common.Domain.initNamespace(Domain.java:864)
> >> > > >     at org.apache.slide.common.Domain.init(Domain.java:478)
> >> > > >     at org.apache.slide.common.Domain.init(Domain.java:412)
> >> > > >     at org.apache.slide.common.Domain.init(Domain.java:375)
> >> > > >     at
> >> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> >> > > >     at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >> > > >     at
> >> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >>
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> >>
> >> > > >     at
> >> > > >
> >> >
> >> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> >>
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >> > > >     at
> >> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >> > > >     at
> >> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> >>
> >> > > >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> > > >     at
> >> > > >
> >> >
> >>
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>
> >> > > >     at java.lang.reflect.Method.invoke(Method.java:324)
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> >>
> >> > > > java.lang.NullPointerException
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> >>
> >> > > >     at
> >> org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> >> > > >     at
> >> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> >> > > >     at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >> > > >     at
> >> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >>
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> >>
> >> > > >     at
> >> > > >
> >> >
> >> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> >>
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >> > > >     at
> >> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >> > > >     at
> >> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> >> > > >     at
> >> >
> >> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> >>
> >> > > >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> > > >     at
> >> > > >
> >> >
> >>
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>
> >> > > >     at java.lang.reflect.Method.invoke(Method.java:324)
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> >>
> >> > > > java.lang.NullPointerException
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> >>
> >> > > >     at
> >> org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> >> > > >     at
> >> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> >> > > >     at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >> > > >     at
> >> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> >>
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> >>
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> >>
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> >>
> >> > > >     at
> >> > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >> > > >     at
> >> >
> >> >org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
> >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> >>
> >> > > >     at
> >> > > >
> >> >
> >>
>
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
> >>
> >> > > >     at java.lang.Thread.run(Thread.java:534)
> >> > > >
> >> > > >
> >> > > >
> >> > > > >From: James Wilson <wi...@ociweb.com>
> >> > > > >Reply-To: axis-user@ws.apache.org
> >> > > > >To: axis-user@ws.apache.org, J H <do...@hotmail.com>
> >> > > > >CC: axis-user@ws.apache.org
> >> > > > >Subject: Re: Change the Port that Axis Service runs as
> >> > > > >Date: Thu, 04 Aug 2005 13:07:49 -0500
> >> > > > >
> >> > > > >What is the actuall error/exceptions you are seeing?  Before
> >> you make a
> >> > > > >request
> >> > > > >to your client application, can you successfully request the
> >> services
> >> > >wsdl
> >> > > > >from
> >> > > > >axis (http://localhost:9090/axis/services/MyPort?wsdl)?
> >> > > > >
> >> > > > >Quoting J H <do...@hotmail.com>:
> >> > > > >
> >> > > > > > They are both setup to use different URI's, but I think what is
> >> > >going on
> >> > > > >is
> >> > > > > > that the first webapp is listening through port 8080 for slide
> >> > >messages
> >> > > > >and
> >> > > > > > the second, axis, webapp/service is listening for soap
> >> requests.
> >> > > > > >
> >> > > > > > When the slide webapp receives a request it starts up a axis
> >> call to
> >> > >the
> >> > > > > > axis server which is also running on port 8080 and the whole
> >> tomcat
> >> > > > > > container becomes unstable.
> >> > > > > >
> >> > > > > > I REALLY appreciate your help!  I'm scouring the web looking
> >> for
> >> > >someone
> >> > > > >who
> >> > > > > > has done something similar.  It seems like changing the port
> >> for
> >> > >axis
> >> > > > >would
> >> > > > > > be something people would commonly do, is that assumption
> >> incorrect?
> >> > > > > >
> >> > > > > > Thanks,
> >> > > > > > Jeff
> >> > > > > >
> >> > > > > > >From: James Wilson <wi...@ociweb.com>
> >> > > > > > >Reply-To: axis-user@ws.apache.org
> >> > > > > > >To: axis-user@ws.apache.org
> >> > > > > > >Subject: Re: Change the Port that Axis Service runs as
> >> > > > > > >Date: Thu, 04 Aug 2005 11:28:44 -0500
> >> > > > > > >
> >> > > > > > >This is sounding more and more like a it's not really an Axis
> >> > >question,
> >> > > > >but
> >> > > > > > >a
> >> > > > > > >servlet container question.
> >> > > > > > >
> >> > > > > > >I'm assuming when you say port, you're talking about TCP/IP
> >> port.
> >> > >The
> >> > > > >port
> >> > > > > > >is
> >> > > > > > >maintained by the servlet container.  If you are developing
> >> two
> >> > >WARs at
> >> > > > >the
> >> > > > > > >same time, I recommend deploying both to the same instance of
> >> > >Tomcat
> >> > > > >(or
> >> > > > > > >some
> >> > > > > > >other container).  Then you would access the two web
> >> applications
> >> > >via
> >> > > > >the
> >> > > > > > >same
> >> > > > > > >port, but different URI
> >> > > > > > >     http://localhost:8080/axis
> >> > > > > > >     http://localhost:8080/interface
> >> > > > > > >
> >> > > > > > >where one war was axis.war and the other was interface.war.
> >> > > > > > >
> >> > > > > > >Too answer your question about changing the port, Tomcat
> >> controls
> >> > >this
> >> > > > >in
> >> > > > > > >CATALINA_HOME/conf/server.xml.  Look for the <Connector>
> >> element.
> >> > >You
> >> > > > >can
> >> > > > > > >learn more about Tomcat administration by following the
> >> > >Documentation
> >> > > > >link
> >> > > > > > >for
> >> > > > > > >the version you are using from this page:
> >> > > > >http://jakarta.apache.org/tomcat/
> >> > > > > > >
> >> > > > > > >-james
> >> > > > > > >
> >> > > > > > >Quoting J H <do...@hotmail.com>:
> >> > > > > > >
> >> > > > > > > > Well, I started out using Eclipse to create WAR files
> >> for both
> >> > > > > > > > webapplications (axis and interface), but I never ran
> >> the two in
> >> > > > >unison
> >> > > > > > > > through Eclipse.
> >> > > > > > > >
> >> > > > > > > > Is there a way to change the port that a servlet runs on?
> >> > > > > > > >
> >> > > > > > > > Thanks,
> >> > > > > > > > Jeff
> >> > > > > > > >
> >> > > > > > > > >From: James Wilson <wi...@ociweb.com>
> >> > > > > > > > >Reply-To: axis-user@ws.apache.org
> >> > > > > > > > >To: axis-user@ws.apache.org
> >> > > > > > > > >Subject: Re: Change the Port that Axis Service runs as
> >> > > > > > > > >Date: Thu, 04 Aug 2005 07:38:56 -0500
> >> > > > > > > > >
> >> > > > > > > > >I haven't been using Axis all that long either.  However I
> >> > >don't
> >> > > > >think
> >> > > > > > >Axis
> >> > > > > > > > >itself can run on a port.  Thus the application
> >> fighting over
> >> > >port
> >> > > > >8080
> >> > > > > > > > >would
> >> > > > > > > > >be your servlet container.  Are you starting Tomcat via an
> >> > >Eclipse
> >> > > > > > >plugin?
> >> > > > > > > > >
> >> > > > > > > > >hope it helps,
> >> > > > > > > > >james
> >> > > > > > > > >
> >> > > > > > > > >
> >> > > > > > > > >Quoting J H <do...@hotmail.com>:
> >> > > > > > > > >
> >> > > > > > > > > > Hi Everyone.  This is my first time e-mailing this
> >> list,
> >> > >because
> >> > > > >the
> >> > > > > > > > > > documentation out there for this project has been
> >> fantastic!
> >> > > > > > >(Thanks to
> >> > > > > > > > >the
> >> > > > > > > > > > Axis and Eclipse participants).
> >> > > > > > > > > >
> >> > > > > > > > > > I have built a self-contained web application
> >> (service) that
> >> > > > > > >implements
> >> > > > > > > > >the
> >> > > > > > > > > > Axis libraries.  I have another webapplication that
> >> I would
> >> > >like
> >> > > > >to
> >> > > > > > >be
> >> > > > > > > > >able
> >> > > > > > > > > > to run on the same application server that talks to
> >> this
> >> > >custom
> >> > > > >axis
> >> > > > > > > > >service
> >> > > > > > > > > > to send messages back and forth to my client.  It
> >> seems that
> >> > >the
> >> > > > >two
> >> > > > > > > > > > applications are fighting over the default port
> >> 8080.  I
> >> > >have
> >> > > > > > >confirmed
> >> > > > > > > > >this
> >> > > > > > > > > > by installing the 2 webservices on different
> >> machines, and
> >> > >the
> >> > > > > > >solution
> >> > > > > > > > > > works great.  I know it must be a simple solution,
> >> but I
> >> > >can't
> >> > > > >find
> >> > > > > > >out
> >> > > > > > > > > > anywhere how to change the port that Axis runs as.
> >> > > > > > > > > >
> >> > > > > > > > > > Thanks!
> >> > > > > > > > > > Jeff
> >> > > > > > > > > >
> >> > > > > > > > > >
> >> > > > > > > > > >
> >> > > > > > > >
> >> > > > > > > >
> >> > > > > > > >
> >> > > > > >
> >> > > > > >
> >> > > > > >
> >> > > >
> >> > > >
> >> > > >
> >> >
> >> >
> >> >
> >
> >
> >
>
>
> - --
> - ------------------------------------------------------------------------
> Dipl.-Inform. Joachim Götze         email: j_goetze@informatik.uni-kl.de
> University of Kaiserslautern        phone: ++49-(0)631-205-3979
> Department of Computer Science      fax:   ++49-(0)631-205-3056
> PO Box 3049                         www:   http://www.icsy.de
> D-67653 Kaiserslautern, Germany
> - ------------------------------------------------------------------------
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFC+E6Vgyvot+f33J4RAqsdAJ9TqgUTfkD3lSUrbEx4ZXSerwbwXACgimk2
> 4vOB2ctYktejd17o9BA+zCc=
> =3ilH
> -----END PGP SIGNATURE-----
>

Re: Change the Port that Axis Service runs as

Posted by Joachim Goetze <j_...@informatik.uni-kl.de>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

if I am not mistaken the Web.XML is part of the Tomcat-Config. So the
only thing you can "load on startup" here is Axis, not the Web Services
managed by Axis. That is why I was asking yesterday, if there is a
chance to load a Web Service immediately after the Axis startup
(although I do not care about any order of startup, which makes your
case even more complex).

Regards,
Jo




J H wrote:
> I found something incredibly interesting, by chance this weekend.  If I
> startup the 2nd axis webapp first and then start the 1st webapp after
> that, everything works fine on the same machine.  This must have been
> why the two webapps worked fine on different machines.  I started
> playing with the load-on-startup tag in the web.xml to see if I could
> setup which webapp was loaded first.  It hasn't worked yet, but I might
> be doing something wrong.
> 
> Jeff
> 
>> From: James Wilson <wi...@ociweb.com>
>> Reply-To: axis-user@ws.apache.org
>> To: axis-user@ws.apache.org
>> Subject: Re: Change the Port that Axis Service runs as
>> Date: Fri, 05 Aug 2005 12:01:53 -0500
>>
>> My last thought is that maybe there something in WebDAV that is
>> getting in the
>> way.
>>
>> -James
>>
>>
>> Quoting J H <do...@hotmail.com>:
>>
>> > Thanks for trying this on your computer!  I have basically the same
>> > configuration, JDK 5, Tomcat 5.5, and Axis 1.2.1.
>> >
>> > 1st Webapp
>> > ------------------
>> > Slide
>> > (Handles External Webdav Requests via
>> http://localhost:8080/mywebdav, makes
>> > axis/soap calls to the second webapp inside of the Tomcat container
>> to get
>> > the data from the database.)
>> >
>> >
>> > 2nd Webapp
>> > ------------------
>> > Self Contained Axis Webapp (I just made my own webapp and included
>> the axis
>> > jars in the web-inf/lib directory)
>> > (Handles Requests from the 1st Webapp, via
>> > http://localhost:8080/myservice/services/MyService and retrieves
>> data from a
>> > database via JDBC)
>> >
>> >
>> > >From: James Wilson <wi...@ociweb.com>
>> > >Reply-To: axis-user@ws.apache.org
>> > >To: axis-user@ws.apache.org
>> > >Subject: Re: Change the Port that Axis Service runs as
>> > >Date: Fri, 05 Aug 2005 08:06:07 -0500
>> > >
>> > >I just setup a quick sample.  Using Axis 1.2.1 and Tomcat 5.5
>> running in
>> > >JRE 5.0
>> > >I installed a second web app into tomcat.  It worked.
>> > >
>> > >I installed the two web apps by putting XML config files under
>> > >CATALINA_HOME/conf/Catalina/localhost/ like below.  Both pointed at
>> two
>> > >different exploded-war directories
>> > >     <?xml version="1.0" encoding="utf-8"?>
>> > >     <Context docBase="C:/dev/client/war" path="/client"
>> reloadable="true">
>> > >     </Context>
>> > >
>> > >I then start Tomcat using the this command (allows remote debug from
>> > >eclipse):
>> > >     %CATALINA_HOME%\bin\catalina.bat jpda start
>> > >
>> > >This is my standard development procedure.  My client connected to
>> the Axis
>> > >server via:
>> > >    MyServiceLocator loc = new MyServiceLocator();
>> > >
>> >
>> >loc.setMyPortEndpointAddress("http://127.0.0.1:8080/server/services/MyPort");
>>
>> > >    MyPortType port = loc.getMyPort();
>> > >    port.invokeMyFunction();
>> > >
>> > >
>> > >Hows is your procedure different?  I don't know if it's important, but
>> > >during
>> > >this test I had all of the Axis jar dependencies in both
>> war/WEB-INF/lib
>> > >directories (duplicated).
>> > >
>> > >Quoting J H <do...@hotmail.com>:
>> > >
>> > > > Here's is the complete stack trace...
>> > > >
>> > > > Again, the scenario is that when I install the 2 wars on seperate
>> > >machines,
>> > > > everything works fine.  When I install the wars on the same
>> machine,
>> > >nothing
>> > > > works and I get the message pasted below after about 5 minutes
>> from the
>> > > > first client axis/soap call.
>> > > >
>> > > > My theory is that both webapplications are serving out to port
>> 8080 and
>> > >when
>> > > > the axis client is trying to communicate with the axis server it
>> > >connects to
>> > > > port 8080, but it is talking to the wrong webapp.  That is why
>> > >everything
>> > > > works fine when I move the webapps to different machines.
>> > > >
>> > > > Thanks again,
>> > > > Jeff
>> > > >
>> > > > Caught SOAPException :; nested exception is:
>> > > >     java.net.SocketTimeoutException: Read timed out
>> > > > AxisFault
>> > > > faultCode:
>> > >{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>> > > > faultSubcode:
>> > > > faultString: java.net.SocketTimeoutException: Read timed out
>> > > > faultActor:
>> > > > faultNode:
>> > > > faultDetail:
>> > > >
>> > >   
>> {http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException:
>> > > > Read timed out
>> > > >     at java.net.SocketInputStream.socketRead0(Native Method)
>> > > >     at java.net.SocketInputStream.read(SocketInputStream.java:129)
>> > > >     at
>> java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
>> > > >     at
>> java.io.BufferedInputStream.read(BufferedInputStream.java:201)
>> > > >     at
>> > > >
>> >
>> >org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
>>
>> > > >     at
>> > >org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
>> > > >     at
>> > > >
>> >
>> >org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>>
>> > > >     at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>> > > >     at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>> > > >     at
>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
>> > > >     at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
>> > > >     at org.apache.axis.client.Call.invoke(Call.java:2748)
>> > > >     at org.apache.axis.client.Call.invoke(Call.java:2424)
>> > > >     at org.apache.axis.client.Call.invoke(Call.java:2347)
>> > > >     at org.apache.axis.client.Call.invoke(Call.java:1804)
>> > > >     at
>> com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
>> > > >     at
>> > > >
>> >
>> >com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
>>
>> > > >     at
>> >
>> >org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
>>
>> > > >     at
>> org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
>> > > >     at
>> org.apache.slide.common.Domain.initNamespace(Domain.java:859)
>> > > >     at org.apache.slide.common.Domain.init(Domain.java:478)
>> > > >     at org.apache.slide.common.Domain.init(Domain.java:412)
>> > > >     at org.apache.slide.common.Domain.init(Domain.java:375)
>> > > >     at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
>> > > >     at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>> > > >     at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
>>
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
>>
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > > >     at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > > >     at
>> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
>>
>> > > >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > > >     at
>> > > >
>> >
>> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>> > > >     at
>> > > >
>> >
>> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>> > > >     at java.lang.reflect.Method.invoke(Method.java:324)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
>>
>> > > >
>> > > >     {http://xml.apache.org/axis/}hostname:win2kjeff
>> > > >
>> > > > java.net.SocketTimeoutException: Read timed out
>> > > >     at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
>> > > >     at
>> > >org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
>> > > >     at
>> > > >
>> >
>> >org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>>
>> > > >     at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>> > > >     at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>> > > >     at
>> org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
>> > > >     at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
>> > > >     at org.apache.axis.client.Call.invoke(Call.java:2748)
>> > > >     at org.apache.axis.client.Call.invoke(Call.java:2424)
>> > > >     at org.apache.axis.client.Call.invoke(Call.java:2347)
>> > > >     at org.apache.axis.client.Call.invoke(Call.java:1804)
>> > > >     at
>> com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
>> > > >     at
>> > > >
>> >
>> >com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
>>
>> > > >     at
>> >
>> >org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
>>
>> > > >     at
>> org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
>> > > >     at
>> org.apache.slide.common.Domain.initNamespace(Domain.java:859)
>> > > >     at org.apache.slide.common.Domain.init(Domain.java:478)
>> > > >     at org.apache.slide.common.Domain.init(Domain.java:412)
>> > > >     at org.apache.slide.common.Domain.init(Domain.java:375)
>> > > >     at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
>> > > >     at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>> > > >     at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
>>
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
>>
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > > >     at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > > >     at
>> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
>>
>> > > >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > > >     at
>> > > >
>> >
>> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>> > > >     at
>> > > >
>> >
>> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>> > > >     at java.lang.reflect.Method.invoke(Method.java:324)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
>>
>> > > > Caused by: java.net.SocketTimeoutException: Read timed out
>> > > >     at java.net.SocketInputStream.socketRead0(Native Method)
>> > > >     at java.net.SocketInputStream.read(SocketInputStream.java:129)
>> > > >     at
>> java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
>> > > >     at
>> java.io.BufferedInputStream.read(BufferedInputStream.java:201)
>> > > >     at
>> > > >
>> >
>> >org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
>>
>> > > >     at
>> > >org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
>> > > >     ... 42 more
>> > > > org.apache.slide.common.ServiceAccessException: Service
>> > > > com.project.slide.store.SecurityStore@1071521 access error : ;
>> nested
>> > > > exception is:
>> > > >     java.net.SocketTimeoutException: Read timed out
>> > > >     at
>> > > >
>> >
>> >com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:135)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
>>
>> > > >     at
>> >
>> >org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
>>
>> > > >     at
>> org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
>> > > >     at
>> org.apache.slide.common.Domain.initNamespace(Domain.java:859)
>> > > >     at org.apache.slide.common.Domain.init(Domain.java:478)
>> > > >     at org.apache.slide.common.Domain.init(Domain.java:412)
>> > > >     at org.apache.slide.common.Domain.init(Domain.java:375)
>> > > >     at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
>> > > >     at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>> > > >     at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
>>
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
>>
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > > >     at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > > >     at
>> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
>>
>> > > >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > > >     at
>> > > >
>> >
>> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>> > > >     at
>> > > >
>> >
>> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>> > > >     at java.lang.reflect.Method.invoke(Method.java:324)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
>>
>> > > > org.apache.slide.structure.ObjectNotFoundException: No object
>> found at
>> > > > /actions
>> > > >     at
>> > > >
>> >
>> >slidestore.reference.MemoryDescriptorsStore.retrieveObject(MemoryDescriptorsStore.java:251)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:539)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:177)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.NamespaceConfig.getActionNode(NamespaceConfig.java:1106)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.NamespaceConfig.initializeNamespaceConfig(NamespaceConfig.java:596)
>>
>> > > >     at
>> >
>> >org.apache.slide.common.Namespace.loadConfiguration(Namespace.java:888)
>> > > >     at
>> org.apache.slide.common.Domain.initNamespace(Domain.java:864)
>> > > >     at org.apache.slide.common.Domain.init(Domain.java:478)
>> > > >     at org.apache.slide.common.Domain.init(Domain.java:412)
>> > > >     at org.apache.slide.common.Domain.init(Domain.java:375)
>> > > >     at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
>> > > >     at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>> > > >     at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
>>
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
>>
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > > >     at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > > >     at
>> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
>>
>> > > >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > > >     at
>> > > >
>> >
>> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>> > > >     at
>> > > >
>> >
>> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>> > > >     at java.lang.reflect.Method.invoke(Method.java:324)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
>>
>> > > > java.lang.NullPointerException
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
>>
>> > > >     at
>> org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
>> > > >     at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
>> > > >     at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>> > > >     at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
>>
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
>>
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > > >     at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > > >     at
>> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
>> > > >     at
>> >
>> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
>>
>> > > >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > > >     at
>> > > >
>> >
>> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>> > > >     at
>> > > >
>> >
>> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>> > > >     at java.lang.reflect.Method.invoke(Method.java:324)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
>>
>> > > > java.lang.NullPointerException
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
>>
>> > > >     at
>> org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
>> > > >     at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
>> > > >     at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>> > > >     at
>> org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>>
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>>
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>>
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>>
>> > > >     at
>> > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>> > > >     at
>> >
>> >org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>> > > >     at
>> > > >
>> >
>> >org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
>>
>> > > >     at
>> > > >
>> >
>> >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
>>
>> > > >     at java.lang.Thread.run(Thread.java:534)
>> > > >
>> > > >
>> > > >
>> > > > >From: James Wilson <wi...@ociweb.com>
>> > > > >Reply-To: axis-user@ws.apache.org
>> > > > >To: axis-user@ws.apache.org, J H <do...@hotmail.com>
>> > > > >CC: axis-user@ws.apache.org
>> > > > >Subject: Re: Change the Port that Axis Service runs as
>> > > > >Date: Thu, 04 Aug 2005 13:07:49 -0500
>> > > > >
>> > > > >What is the actuall error/exceptions you are seeing?  Before
>> you make a
>> > > > >request
>> > > > >to your client application, can you successfully request the
>> services
>> > >wsdl
>> > > > >from
>> > > > >axis (http://localhost:9090/axis/services/MyPort?wsdl)?
>> > > > >
>> > > > >Quoting J H <do...@hotmail.com>:
>> > > > >
>> > > > > > They are both setup to use different URI's, but I think what is
>> > >going on
>> > > > >is
>> > > > > > that the first webapp is listening through port 8080 for slide
>> > >messages
>> > > > >and
>> > > > > > the second, axis, webapp/service is listening for soap
>> requests.
>> > > > > >
>> > > > > > When the slide webapp receives a request it starts up a axis
>> call to
>> > >the
>> > > > > > axis server which is also running on port 8080 and the whole
>> tomcat
>> > > > > > container becomes unstable.
>> > > > > >
>> > > > > > I REALLY appreciate your help!  I'm scouring the web looking
>> for
>> > >someone
>> > > > >who
>> > > > > > has done something similar.  It seems like changing the port
>> for
>> > >axis
>> > > > >would
>> > > > > > be something people would commonly do, is that assumption
>> incorrect?
>> > > > > >
>> > > > > > Thanks,
>> > > > > > Jeff
>> > > > > >
>> > > > > > >From: James Wilson <wi...@ociweb.com>
>> > > > > > >Reply-To: axis-user@ws.apache.org
>> > > > > > >To: axis-user@ws.apache.org
>> > > > > > >Subject: Re: Change the Port that Axis Service runs as
>> > > > > > >Date: Thu, 04 Aug 2005 11:28:44 -0500
>> > > > > > >
>> > > > > > >This is sounding more and more like a it's not really an Axis
>> > >question,
>> > > > >but
>> > > > > > >a
>> > > > > > >servlet container question.
>> > > > > > >
>> > > > > > >I'm assuming when you say port, you're talking about TCP/IP
>> port.
>> > >The
>> > > > >port
>> > > > > > >is
>> > > > > > >maintained by the servlet container.  If you are developing
>> two
>> > >WARs at
>> > > > >the
>> > > > > > >same time, I recommend deploying both to the same instance of
>> > >Tomcat
>> > > > >(or
>> > > > > > >some
>> > > > > > >other container).  Then you would access the two web
>> applications
>> > >via
>> > > > >the
>> > > > > > >same
>> > > > > > >port, but different URI
>> > > > > > >     http://localhost:8080/axis
>> > > > > > >     http://localhost:8080/interface
>> > > > > > >
>> > > > > > >where one war was axis.war and the other was interface.war.
>> > > > > > >
>> > > > > > >Too answer your question about changing the port, Tomcat
>> controls
>> > >this
>> > > > >in
>> > > > > > >CATALINA_HOME/conf/server.xml.  Look for the <Connector>
>> element.
>> > >You
>> > > > >can
>> > > > > > >learn more about Tomcat administration by following the
>> > >Documentation
>> > > > >link
>> > > > > > >for
>> > > > > > >the version you are using from this page:
>> > > > >http://jakarta.apache.org/tomcat/
>> > > > > > >
>> > > > > > >-james
>> > > > > > >
>> > > > > > >Quoting J H <do...@hotmail.com>:
>> > > > > > >
>> > > > > > > > Well, I started out using Eclipse to create WAR files
>> for both
>> > > > > > > > webapplications (axis and interface), but I never ran
>> the two in
>> > > > >unison
>> > > > > > > > through Eclipse.
>> > > > > > > >
>> > > > > > > > Is there a way to change the port that a servlet runs on?
>> > > > > > > >
>> > > > > > > > Thanks,
>> > > > > > > > Jeff
>> > > > > > > >
>> > > > > > > > >From: James Wilson <wi...@ociweb.com>
>> > > > > > > > >Reply-To: axis-user@ws.apache.org
>> > > > > > > > >To: axis-user@ws.apache.org
>> > > > > > > > >Subject: Re: Change the Port that Axis Service runs as
>> > > > > > > > >Date: Thu, 04 Aug 2005 07:38:56 -0500
>> > > > > > > > >
>> > > > > > > > >I haven't been using Axis all that long either.  However I
>> > >don't
>> > > > >think
>> > > > > > >Axis
>> > > > > > > > >itself can run on a port.  Thus the application
>> fighting over
>> > >port
>> > > > >8080
>> > > > > > > > >would
>> > > > > > > > >be your servlet container.  Are you starting Tomcat via an
>> > >Eclipse
>> > > > > > >plugin?
>> > > > > > > > >
>> > > > > > > > >hope it helps,
>> > > > > > > > >james
>> > > > > > > > >
>> > > > > > > > >
>> > > > > > > > >Quoting J H <do...@hotmail.com>:
>> > > > > > > > >
>> > > > > > > > > > Hi Everyone.  This is my first time e-mailing this
>> list,
>> > >because
>> > > > >the
>> > > > > > > > > > documentation out there for this project has been
>> fantastic!
>> > > > > > >(Thanks to
>> > > > > > > > >the
>> > > > > > > > > > Axis and Eclipse participants).
>> > > > > > > > > >
>> > > > > > > > > > I have built a self-contained web application
>> (service) that
>> > > > > > >implements
>> > > > > > > > >the
>> > > > > > > > > > Axis libraries.  I have another webapplication that
>> I would
>> > >like
>> > > > >to
>> > > > > > >be
>> > > > > > > > >able
>> > > > > > > > > > to run on the same application server that talks to
>> this
>> > >custom
>> > > > >axis
>> > > > > > > > >service
>> > > > > > > > > > to send messages back and forth to my client.  It
>> seems that
>> > >the
>> > > > >two
>> > > > > > > > > > applications are fighting over the default port
>> 8080.  I
>> > >have
>> > > > > > >confirmed
>> > > > > > > > >this
>> > > > > > > > > > by installing the 2 webservices on different
>> machines, and
>> > >the
>> > > > > > >solution
>> > > > > > > > > > works great.  I know it must be a simple solution,
>> but I
>> > >can't
>> > > > >find
>> > > > > > >out
>> > > > > > > > > > anywhere how to change the port that Axis runs as.
>> > > > > > > > > >
>> > > > > > > > > > Thanks!
>> > > > > > > > > > Jeff
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > >
>> > > > > > > >
>> > > > > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > >
>> > > >
>> > > >
>> >
>> >
>> >
> 
> 
> 


- --
- ------------------------------------------------------------------------
Dipl.-Inform. Joachim Götze         email: j_goetze@informatik.uni-kl.de
University of Kaiserslautern        phone: ++49-(0)631-205-3979
Department of Computer Science      fax:   ++49-(0)631-205-3056
PO Box 3049                         www:   http://www.icsy.de
D-67653 Kaiserslautern, Germany
- ------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC+E6Vgyvot+f33J4RAqsdAJ9TqgUTfkD3lSUrbEx4ZXSerwbwXACgimk2
4vOB2ctYktejd17o9BA+zCc=
=3ilH
-----END PGP SIGNATURE-----

Re: Change the Port that Axis Service runs as

Posted by J H <do...@hotmail.com>.
I found something incredibly interesting, by chance this weekend.  If I 
startup the 2nd axis webapp first and then start the 1st webapp after that, 
everything works fine on the same machine.  This must have been why the two 
webapps worked fine on different machines.  I started playing with the 
load-on-startup tag in the web.xml to see if I could setup which webapp was 
loaded first.  It hasn't worked yet, but I might be doing something wrong.

Jeff

>From: James Wilson <wi...@ociweb.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: Change the Port that Axis Service runs as
>Date: Fri, 05 Aug 2005 12:01:53 -0500
>
>My last thought is that maybe there something in WebDAV that is getting in 
>the
>way.
>
>-James
>
>
>Quoting J H <do...@hotmail.com>:
>
> > Thanks for trying this on your computer!  I have basically the same
> > configuration, JDK 5, Tomcat 5.5, and Axis 1.2.1.
> >
> > 1st Webapp
> > ------------------
> > Slide
> > (Handles External Webdav Requests via http://localhost:8080/mywebdav, 
>makes
> > axis/soap calls to the second webapp inside of the Tomcat container to 
>get
> > the data from the database.)
> >
> >
> > 2nd Webapp
> > ------------------
> > Self Contained Axis Webapp (I just made my own webapp and included the 
>axis
> > jars in the web-inf/lib directory)
> > (Handles Requests from the 1st Webapp, via
> > http://localhost:8080/myservice/services/MyService and retrieves data 
>from a
> > database via JDBC)
> >
> >
> > >From: James Wilson <wi...@ociweb.com>
> > >Reply-To: axis-user@ws.apache.org
> > >To: axis-user@ws.apache.org
> > >Subject: Re: Change the Port that Axis Service runs as
> > >Date: Fri, 05 Aug 2005 08:06:07 -0500
> > >
> > >I just setup a quick sample.  Using Axis 1.2.1 and Tomcat 5.5 running 
>in
> > >JRE 5.0
> > >I installed a second web app into tomcat.  It worked.
> > >
> > >I installed the two web apps by putting XML config files under
> > >CATALINA_HOME/conf/Catalina/localhost/ like below.  Both pointed at two
> > >different exploded-war directories
> > >     <?xml version="1.0" encoding="utf-8"?>
> > >     <Context docBase="C:/dev/client/war" path="/client" 
>reloadable="true">
> > >     </Context>
> > >
> > >I then start Tomcat using the this command (allows remote debug from
> > >eclipse):
> > >     %CATALINA_HOME%\bin\catalina.bat jpda start
> > >
> > >This is my standard development procedure.  My client connected to the 
>Axis
> > >server via:
> > >    MyServiceLocator loc = new MyServiceLocator();
> > >
> > 
> >loc.setMyPortEndpointAddress("http://127.0.0.1:8080/server/services/MyPort");
> > >    MyPortType port = loc.getMyPort();
> > >    port.invokeMyFunction();
> > >
> > >
> > >Hows is your procedure different?  I don't know if it's important, but
> > >during
> > >this test I had all of the Axis jar dependencies in both 
>war/WEB-INF/lib
> > >directories (duplicated).
> > >
> > >Quoting J H <do...@hotmail.com>:
> > >
> > > > Here's is the complete stack trace...
> > > >
> > > > Again, the scenario is that when I install the 2 wars on seperate
> > >machines,
> > > > everything works fine.  When I install the wars on the same machine,
> > >nothing
> > > > works and I get the message pasted below after about 5 minutes from 
>the
> > > > first client axis/soap call.
> > > >
> > > > My theory is that both webapplications are serving out to port 8080 
>and
> > >when
> > > > the axis client is trying to communicate with the axis server it
> > >connects to
> > > > port 8080, but it is talking to the wrong webapp.  That is why
> > >everything
> > > > works fine when I move the webapps to different machines.
> > > >
> > > > Thanks again,
> > > > Jeff
> > > >
> > > > Caught SOAPException :; nested exception is:
> > > > 	java.net.SocketTimeoutException: Read timed out
> > > > AxisFault
> > > > faultCode:
> > >{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> > > > faultSubcode:
> > > > faultString: java.net.SocketTimeoutException: Read timed out
> > > > faultActor:
> > > > faultNode:
> > > > faultDetail:
> > > >
> > 
> >	{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException:
> > > > Read timed out
> > > > 	at java.net.SocketInputStream.socketRead0(Native Method)
> > > > 	at java.net.SocketInputStream.read(SocketInputStream.java:129)
> > > > 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> > > > 	at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> > > > 	at
> > > >
> >
> >org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> > > > 	at
> > >org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> > > > 	at
> > > >
> >
> >org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> > > > 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> > > > 	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> > > > 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> > > > 	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> > > > 	at org.apache.axis.client.Call.invoke(Call.java:2748)
> > > > 	at org.apache.axis.client.Call.invoke(Call.java:2424)
> > > > 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> > > > 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> > > > 	at 
>com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> > > > 	at
> > > >
> > 
> >com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> > > > 	at
> > > >
> > 
> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> > > > 	at
> > >org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> > > > 	at
> > > >
> > 
> >org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> > > > 	at 
>org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> > > > 	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> > > > 	at org.apache.slide.common.Domain.init(Domain.java:478)
> > > > 	at org.apache.slide.common.Domain.init(Domain.java:412)
> > > > 	at org.apache.slide.common.Domain.init(Domain.java:375)
> > > > 	at 
>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > > > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > > 	at 
>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > > > 	at
> > >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > > 	at 
>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > > 	at
> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > > > 	at
> > 
> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > > > 	at
> > >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > > > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > 	at
> > > >
> > 
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > 	at
> > > >
> >
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > > >
> > > > 	{http://xml.apache.org/axis/}hostname:win2kjeff
> > > >
> > > > java.net.SocketTimeoutException: Read timed out
> > > > 	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> > > > 	at
> > >org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
> > > > 	at
> > > >
> >
> >org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> > > > 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> > > > 	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> > > > 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> > > > 	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> > > > 	at org.apache.axis.client.Call.invoke(Call.java:2748)
> > > > 	at org.apache.axis.client.Call.invoke(Call.java:2424)
> > > > 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> > > > 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> > > > 	at 
>com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> > > > 	at
> > > >
> > 
> >com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> > > > 	at
> > > >
> > 
> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> > > > 	at
> > >org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> > > > 	at
> > > >
> > 
> >org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> > > > 	at 
>org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> > > > 	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> > > > 	at org.apache.slide.common.Domain.init(Domain.java:478)
> > > > 	at org.apache.slide.common.Domain.init(Domain.java:412)
> > > > 	at org.apache.slide.common.Domain.init(Domain.java:375)
> > > > 	at 
>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > > > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > > 	at 
>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > > > 	at
> > >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > > 	at 
>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > > 	at
> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > > > 	at
> > 
> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > > > 	at
> > >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > > > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > 	at
> > > >
> > 
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > 	at
> > > >
> >
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > > > Caused by: java.net.SocketTimeoutException: Read timed out
> > > > 	at java.net.SocketInputStream.socketRead0(Native Method)
> > > > 	at java.net.SocketInputStream.read(SocketInputStream.java:129)
> > > > 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> > > > 	at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> > > > 	at
> > > >
> >
> >org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> > > > 	at
> > >org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> > > > 	... 42 more
> > > > org.apache.slide.common.ServiceAccessException: Service
> > > > com.project.slide.store.SecurityStore@1071521 access error : ; 
>nested
> > > > exception is:
> > > > 	java.net.SocketTimeoutException: Read timed out
> > > > 	at
> > > >
> > 
> >com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:135)
> > > > 	at
> > > >
> > 
> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> > > > 	at
> > >org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> > > > 	at
> > > >
> > 
> >org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> > > > 	at 
>org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> > > > 	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> > > > 	at org.apache.slide.common.Domain.init(Domain.java:478)
> > > > 	at org.apache.slide.common.Domain.init(Domain.java:412)
> > > > 	at org.apache.slide.common.Domain.init(Domain.java:375)
> > > > 	at 
>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > > > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > > 	at 
>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > > > 	at
> > >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > > 	at 
>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > > 	at
> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > > > 	at
> > 
> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > > > 	at
> > >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > > > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > 	at
> > > >
> > 
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > 	at
> > > >
> >
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > > > org.apache.slide.structure.ObjectNotFoundException: No object found 
>at
> > > > /actions
> > > > 	at
> > > >
> >
> >slidestore.reference.MemoryDescriptorsStore.retrieveObject(MemoryDescriptorsStore.java:251)
> > > > 	at
> > > >
> > 
> >org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:539)
> > > > 	at
> > > >
> > 
> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:177)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.NamespaceConfig.getActionNode(NamespaceConfig.java:1106)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.NamespaceConfig.initializeNamespaceConfig(NamespaceConfig.java:596)
> > > > 	at
> > >org.apache.slide.common.Namespace.loadConfiguration(Namespace.java:888)
> > > > 	at org.apache.slide.common.Domain.initNamespace(Domain.java:864)
> > > > 	at org.apache.slide.common.Domain.init(Domain.java:478)
> > > > 	at org.apache.slide.common.Domain.init(Domain.java:412)
> > > > 	at org.apache.slide.common.Domain.init(Domain.java:375)
> > > > 	at 
>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > > > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > > 	at 
>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > > > 	at
> > >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > > 	at 
>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > > 	at
> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > > > 	at
> > 
> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > > > 	at
> > >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > > > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > 	at
> > > >
> > 
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > 	at
> > > >
> >
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > > > java.lang.NullPointerException
> > > > 	at
> > > >
> >
> >org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> > > > 	at org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> > > > 	at 
>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> > > > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > > 	at 
>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > > > 	at
> > >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > > 	at 
>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > > 	at
> > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > > > 	at
> > 
> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > > > 	at
> > >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > > > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > 	at
> > > >
> > 
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > 	at
> > > >
> >
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > > > java.lang.NullPointerException
> > > > 	at
> > > >
> >
> >org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> > > > 	at
> > > >
> >
> >org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> > > > 	at org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> > > > 	at 
>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> > > > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > > 	at 
>org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > > > 	at
> > > >
> >
> >org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > > > 	at
> > > >
> >
> >org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> > > > 	at
> > > >
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > > > 	at
> > > >
> > 
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > > 	at
> > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > > 	at
> > >org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> > > > 	at
> > > >
> > 
> >org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
> > > > 	at
> > > >
> >
> >org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
> > > > 	at
> > > >
> > 
> >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> > > > 	at
> > > >
> >
> >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
> > > > 	at java.lang.Thread.run(Thread.java:534)
> > > >
> > > >
> > > >
> > > > >From: James Wilson <wi...@ociweb.com>
> > > > >Reply-To: axis-user@ws.apache.org
> > > > >To: axis-user@ws.apache.org, J H <do...@hotmail.com>
> > > > >CC: axis-user@ws.apache.org
> > > > >Subject: Re: Change the Port that Axis Service runs as
> > > > >Date: Thu, 04 Aug 2005 13:07:49 -0500
> > > > >
> > > > >What is the actuall error/exceptions you are seeing?  Before you 
>make a
> > > > >request
> > > > >to your client application, can you successfully request the 
>services
> > >wsdl
> > > > >from
> > > > >axis (http://localhost:9090/axis/services/MyPort?wsdl)?
> > > > >
> > > > >Quoting J H <do...@hotmail.com>:
> > > > >
> > > > > > They are both setup to use different URI's, but I think what is
> > >going on
> > > > >is
> > > > > > that the first webapp is listening through port 8080 for slide
> > >messages
> > > > >and
> > > > > > the second, axis, webapp/service is listening for soap requests.
> > > > > >
> > > > > > When the slide webapp receives a request it starts up a axis 
>call to
> > >the
> > > > > > axis server which is also running on port 8080 and the whole 
>tomcat
> > > > > > container becomes unstable.
> > > > > >
> > > > > > I REALLY appreciate your help!  I'm scouring the web looking for
> > >someone
> > > > >who
> > > > > > has done something similar.  It seems like changing the port for
> > >axis
> > > > >would
> > > > > > be something people would commonly do, is that assumption 
>incorrect?
> > > > > >
> > > > > > Thanks,
> > > > > > Jeff
> > > > > >
> > > > > > >From: James Wilson <wi...@ociweb.com>
> > > > > > >Reply-To: axis-user@ws.apache.org
> > > > > > >To: axis-user@ws.apache.org
> > > > > > >Subject: Re: Change the Port that Axis Service runs as
> > > > > > >Date: Thu, 04 Aug 2005 11:28:44 -0500
> > > > > > >
> > > > > > >This is sounding more and more like a it's not really an Axis
> > >question,
> > > > >but
> > > > > > >a
> > > > > > >servlet container question.
> > > > > > >
> > > > > > >I'm assuming when you say port, you're talking about TCP/IP 
>port.
> > >The
> > > > >port
> > > > > > >is
> > > > > > >maintained by the servlet container.  If you are developing two
> > >WARs at
> > > > >the
> > > > > > >same time, I recommend deploying both to the same instance of
> > >Tomcat
> > > > >(or
> > > > > > >some
> > > > > > >other container).  Then you would access the two web 
>applications
> > >via
> > > > >the
> > > > > > >same
> > > > > > >port, but different URI
> > > > > > >     http://localhost:8080/axis
> > > > > > >     http://localhost:8080/interface
> > > > > > >
> > > > > > >where one war was axis.war and the other was interface.war.
> > > > > > >
> > > > > > >Too answer your question about changing the port, Tomcat 
>controls
> > >this
> > > > >in
> > > > > > >CATALINA_HOME/conf/server.xml.  Look for the <Connector> 
>element.
> > >You
> > > > >can
> > > > > > >learn more about Tomcat administration by following the
> > >Documentation
> > > > >link
> > > > > > >for
> > > > > > >the version you are using from this page:
> > > > >http://jakarta.apache.org/tomcat/
> > > > > > >
> > > > > > >-james
> > > > > > >
> > > > > > >Quoting J H <do...@hotmail.com>:
> > > > > > >
> > > > > > > > Well, I started out using Eclipse to create WAR files for 
>both
> > > > > > > > webapplications (axis and interface), but I never ran the 
>two in
> > > > >unison
> > > > > > > > through Eclipse.
> > > > > > > >
> > > > > > > > Is there a way to change the port that a servlet runs on?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Jeff
> > > > > > > >
> > > > > > > > >From: James Wilson <wi...@ociweb.com>
> > > > > > > > >Reply-To: axis-user@ws.apache.org
> > > > > > > > >To: axis-user@ws.apache.org
> > > > > > > > >Subject: Re: Change the Port that Axis Service runs as
> > > > > > > > >Date: Thu, 04 Aug 2005 07:38:56 -0500
> > > > > > > > >
> > > > > > > > >I haven't been using Axis all that long either.  However I
> > >don't
> > > > >think
> > > > > > >Axis
> > > > > > > > >itself can run on a port.  Thus the application fighting 
>over
> > >port
> > > > >8080
> > > > > > > > >would
> > > > > > > > >be your servlet container.  Are you starting Tomcat via an
> > >Eclipse
> > > > > > >plugin?
> > > > > > > > >
> > > > > > > > >hope it helps,
> > > > > > > > >james
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >Quoting J H <do...@hotmail.com>:
> > > > > > > > >
> > > > > > > > > > Hi Everyone.  This is my first time e-mailing this list,
> > >because
> > > > >the
> > > > > > > > > > documentation out there for this project has been 
>fantastic!
> > > > > > >(Thanks to
> > > > > > > > >the
> > > > > > > > > > Axis and Eclipse participants).
> > > > > > > > > >
> > > > > > > > > > I have built a self-contained web application (service) 
>that
> > > > > > >implements
> > > > > > > > >the
> > > > > > > > > > Axis libraries.  I have another webapplication that I 
>would
> > >like
> > > > >to
> > > > > > >be
> > > > > > > > >able
> > > > > > > > > > to run on the same application server that talks to this
> > >custom
> > > > >axis
> > > > > > > > >service
> > > > > > > > > > to send messages back and forth to my client.  It seems 
>that
> > >the
> > > > >two
> > > > > > > > > > applications are fighting over the default port 8080.  I
> > >have
> > > > > > >confirmed
> > > > > > > > >this
> > > > > > > > > > by installing the 2 webservices on different machines, 
>and
> > >the
> > > > > > >solution
> > > > > > > > > > works great.  I know it must be a simple solution, but I
> > >can't
> > > > >find
> > > > > > >out
> > > > > > > > > > anywhere how to change the port that Axis runs as.
> > > > > > > > > >
> > > > > > > > > > Thanks!
> > > > > > > > > > Jeff
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> >
> >
> >



Re: Change the Port that Axis Service runs as

Posted by James Wilson <wi...@ociweb.com>.
My last thought is that maybe there something in WebDAV that is getting in the
way.

-James


Quoting J H <do...@hotmail.com>:

> Thanks for trying this on your computer!  I have basically the same
> configuration, JDK 5, Tomcat 5.5, and Axis 1.2.1.
>
> 1st Webapp
> ------------------
> Slide
> (Handles External Webdav Requests via http://localhost:8080/mywebdav, makes
> axis/soap calls to the second webapp inside of the Tomcat container to get
> the data from the database.)
>
>
> 2nd Webapp
> ------------------
> Self Contained Axis Webapp (I just made my own webapp and included the axis
> jars in the web-inf/lib directory)
> (Handles Requests from the 1st Webapp, via
> http://localhost:8080/myservice/services/MyService and retrieves data from a
> database via JDBC)
>
>
> >From: James Wilson <wi...@ociweb.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: Change the Port that Axis Service runs as
> >Date: Fri, 05 Aug 2005 08:06:07 -0500
> >
> >I just setup a quick sample.  Using Axis 1.2.1 and Tomcat 5.5 running in
> >JRE 5.0
> >I installed a second web app into tomcat.  It worked.
> >
> >I installed the two web apps by putting XML config files under
> >CATALINA_HOME/conf/Catalina/localhost/ like below.  Both pointed at two
> >different exploded-war directories
> >     <?xml version="1.0" encoding="utf-8"?>
> >     <Context docBase="C:/dev/client/war" path="/client" reloadable="true">
> >     </Context>
> >
> >I then start Tomcat using the this command (allows remote debug from
> >eclipse):
> >     %CATALINA_HOME%\bin\catalina.bat jpda start
> >
> >This is my standard development procedure.  My client connected to the Axis
> >server via:
> >    MyServiceLocator loc = new MyServiceLocator();
> >
> >loc.setMyPortEndpointAddress("http://127.0.0.1:8080/server/services/MyPort");
> >    MyPortType port = loc.getMyPort();
> >    port.invokeMyFunction();
> >
> >
> >Hows is your procedure different?  I don't know if it's important, but
> >during
> >this test I had all of the Axis jar dependencies in both war/WEB-INF/lib
> >directories (duplicated).
> >
> >Quoting J H <do...@hotmail.com>:
> >
> > > Here's is the complete stack trace...
> > >
> > > Again, the scenario is that when I install the 2 wars on seperate
> >machines,
> > > everything works fine.  When I install the wars on the same machine,
> >nothing
> > > works and I get the message pasted below after about 5 minutes from the
> > > first client axis/soap call.
> > >
> > > My theory is that both webapplications are serving out to port 8080 and
> >when
> > > the axis client is trying to communicate with the axis server it
> >connects to
> > > port 8080, but it is talking to the wrong webapp.  That is why
> >everything
> > > works fine when I move the webapps to different machines.
> > >
> > > Thanks again,
> > > Jeff
> > >
> > > Caught SOAPException :; nested exception is:
> > > 	java.net.SocketTimeoutException: Read timed out
> > > AxisFault
> > > faultCode:
> >{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> > > faultSubcode:
> > > faultString: java.net.SocketTimeoutException: Read timed out
> > > faultActor:
> > > faultNode:
> > > faultDetail:
> > >
> >	{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException:
> > > Read timed out
> > > 	at java.net.SocketInputStream.socketRead0(Native Method)
> > > 	at java.net.SocketInputStream.read(SocketInputStream.java:129)
> > > 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> > > 	at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> > > 	at
> > >
>
>org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> > > 	at
> >org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> > > 	at
> > >
>
>org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> > > 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> > > 	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> > > 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> > > 	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> > > 	at org.apache.axis.client.Call.invoke(Call.java:2748)
> > > 	at org.apache.axis.client.Call.invoke(Call.java:2424)
> > > 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> > > 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> > > 	at com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> > > 	at
> > >
> >com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> > > 	at
> > >
> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> > > 	at
> >org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> > > 	at
> > >
>
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> > > 	at
> > >
>
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> > > 	at
> > >
> >org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> > > 	at
> > >
>
>org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> > > 	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> > > 	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> > > 	at org.apache.slide.common.Domain.init(Domain.java:478)
> > > 	at org.apache.slide.common.Domain.init(Domain.java:412)
> > > 	at org.apache.slide.common.Domain.init(Domain.java:375)
> > > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > > 	at
> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > > 	at
> > >
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > > 	at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > 	at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > 	at
> >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > > 	at
> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > > 	at
> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > > 	at
> > >
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > 	at
> > >
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > 	at
> > >
>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > > 	at
> > >
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > > 	at
> > >
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > >
> > > 	{http://xml.apache.org/axis/}hostname:win2kjeff
> > >
> > > java.net.SocketTimeoutException: Read timed out
> > > 	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> > > 	at
> >org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
> > > 	at
> > >
>
>org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> > > 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> > > 	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> > > 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> > > 	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> > > 	at org.apache.axis.client.Call.invoke(Call.java:2748)
> > > 	at org.apache.axis.client.Call.invoke(Call.java:2424)
> > > 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> > > 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> > > 	at com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> > > 	at
> > >
> >com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> > > 	at
> > >
> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> > > 	at
> >org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> > > 	at
> > >
>
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> > > 	at
> > >
>
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> > > 	at
> > >
> >org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> > > 	at
> > >
>
>org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> > > 	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> > > 	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> > > 	at org.apache.slide.common.Domain.init(Domain.java:478)
> > > 	at org.apache.slide.common.Domain.init(Domain.java:412)
> > > 	at org.apache.slide.common.Domain.init(Domain.java:375)
> > > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > > 	at
> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > > 	at
> > >
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > > 	at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > 	at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > 	at
> >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > > 	at
> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > > 	at
> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > > 	at
> > >
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > 	at
> > >
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > 	at
> > >
>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > > 	at
> > >
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > > 	at
> > >
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > > Caused by: java.net.SocketTimeoutException: Read timed out
> > > 	at java.net.SocketInputStream.socketRead0(Native Method)
> > > 	at java.net.SocketInputStream.read(SocketInputStream.java:129)
> > > 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> > > 	at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> > > 	at
> > >
>
>org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> > > 	at
> >org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> > > 	... 42 more
> > > org.apache.slide.common.ServiceAccessException: Service
> > > com.project.slide.store.SecurityStore@1071521 access error : ; nested
> > > exception is:
> > > 	java.net.SocketTimeoutException: Read timed out
> > > 	at
> > >
> >com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:135)
> > > 	at
> > >
> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> > > 	at
> >org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> > > 	at
> > >
>
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> > > 	at
> > >
>
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> > > 	at
> > >
> >org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> > > 	at
> > >
>
>org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> > > 	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> > > 	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> > > 	at org.apache.slide.common.Domain.init(Domain.java:478)
> > > 	at org.apache.slide.common.Domain.init(Domain.java:412)
> > > 	at org.apache.slide.common.Domain.init(Domain.java:375)
> > > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > > 	at
> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > > 	at
> > >
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > > 	at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > 	at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > 	at
> >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > > 	at
> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > > 	at
> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > > 	at
> > >
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > 	at
> > >
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > 	at
> > >
>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > > 	at
> > >
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > > 	at
> > >
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > > org.apache.slide.structure.ObjectNotFoundException: No object found at
> > > /actions
> > > 	at
> > >
>
>slidestore.reference.MemoryDescriptorsStore.retrieveObject(MemoryDescriptorsStore.java:251)
> > > 	at
> > >
> >org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:539)
> > > 	at
> > >
> >org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:177)
> > > 	at
> > >
>
>org.apache.slide.common.NamespaceConfig.getActionNode(NamespaceConfig.java:1106)
> > > 	at
> > >
>
>org.apache.slide.common.NamespaceConfig.initializeNamespaceConfig(NamespaceConfig.java:596)
> > > 	at
> >org.apache.slide.common.Namespace.loadConfiguration(Namespace.java:888)
> > > 	at org.apache.slide.common.Domain.initNamespace(Domain.java:864)
> > > 	at org.apache.slide.common.Domain.init(Domain.java:478)
> > > 	at org.apache.slide.common.Domain.init(Domain.java:412)
> > > 	at org.apache.slide.common.Domain.init(Domain.java:375)
> > > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > > 	at
> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > > 	at
> > >
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > > 	at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > 	at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > 	at
> >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > > 	at
> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > > 	at
> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > > 	at
> > >
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > 	at
> > >
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > 	at
> > >
>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > > 	at
> > >
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > > 	at
> > >
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > > java.lang.NullPointerException
> > > 	at
> > >
>
>org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> > > 	at
> > >
>
>org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> > > 	at org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> > > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> > > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > > 	at
> >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > > 	at
> > >
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > > 	at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > 	at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > 	at
> >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > > 	at
> >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > > 	at
> >org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > > 	at
> > >
> >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > 	at
> > >
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > 	at
> > >
>
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > > 	at
> > >
> >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > > 	at
> > >
> >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > > java.lang.NullPointerException
> > > 	at
> > >
>
>org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> > > 	at
> > >
>
>org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> > > 	at org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> > > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> > > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > > 	at
> > >
> >org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > > 	at
> > >
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > 	at
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > > 	at
> > >
>
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> > > 	at
> > >
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > 	at
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > 	at
> > >
> >org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
> > > 	at
> > >
> >org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > > 	at
> > >
>
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> > > 	at
> > >
> >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> > > 	at
> > >
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > 	at
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> > > 	at
> > >
>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > > 	at
> > >
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > 	at
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > 	at
> >org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> > > 	at
> > >
> >org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
> > > 	at
> > >
>
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
> > > 	at
> > >
> >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> > > 	at
> > >
>
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
> > > 	at java.lang.Thread.run(Thread.java:534)
> > >
> > >
> > >
> > > >From: James Wilson <wi...@ociweb.com>
> > > >Reply-To: axis-user@ws.apache.org
> > > >To: axis-user@ws.apache.org, J H <do...@hotmail.com>
> > > >CC: axis-user@ws.apache.org
> > > >Subject: Re: Change the Port that Axis Service runs as
> > > >Date: Thu, 04 Aug 2005 13:07:49 -0500
> > > >
> > > >What is the actuall error/exceptions you are seeing?  Before you make a
> > > >request
> > > >to your client application, can you successfully request the services
> >wsdl
> > > >from
> > > >axis (http://localhost:9090/axis/services/MyPort?wsdl)?
> > > >
> > > >Quoting J H <do...@hotmail.com>:
> > > >
> > > > > They are both setup to use different URI's, but I think what is
> >going on
> > > >is
> > > > > that the first webapp is listening through port 8080 for slide
> >messages
> > > >and
> > > > > the second, axis, webapp/service is listening for soap requests.
> > > > >
> > > > > When the slide webapp receives a request it starts up a axis call to
> >the
> > > > > axis server which is also running on port 8080 and the whole tomcat
> > > > > container becomes unstable.
> > > > >
> > > > > I REALLY appreciate your help!  I'm scouring the web looking for
> >someone
> > > >who
> > > > > has done something similar.  It seems like changing the port for
> >axis
> > > >would
> > > > > be something people would commonly do, is that assumption incorrect?
> > > > >
> > > > > Thanks,
> > > > > Jeff
> > > > >
> > > > > >From: James Wilson <wi...@ociweb.com>
> > > > > >Reply-To: axis-user@ws.apache.org
> > > > > >To: axis-user@ws.apache.org
> > > > > >Subject: Re: Change the Port that Axis Service runs as
> > > > > >Date: Thu, 04 Aug 2005 11:28:44 -0500
> > > > > >
> > > > > >This is sounding more and more like a it's not really an Axis
> >question,
> > > >but
> > > > > >a
> > > > > >servlet container question.
> > > > > >
> > > > > >I'm assuming when you say port, you're talking about TCP/IP port.
> >The
> > > >port
> > > > > >is
> > > > > >maintained by the servlet container.  If you are developing two
> >WARs at
> > > >the
> > > > > >same time, I recommend deploying both to the same instance of
> >Tomcat
> > > >(or
> > > > > >some
> > > > > >other container).  Then you would access the two web applications
> >via
> > > >the
> > > > > >same
> > > > > >port, but different URI
> > > > > >     http://localhost:8080/axis
> > > > > >     http://localhost:8080/interface
> > > > > >
> > > > > >where one war was axis.war and the other was interface.war.
> > > > > >
> > > > > >Too answer your question about changing the port, Tomcat controls
> >this
> > > >in
> > > > > >CATALINA_HOME/conf/server.xml.  Look for the <Connector> element.
> >You
> > > >can
> > > > > >learn more about Tomcat administration by following the
> >Documentation
> > > >link
> > > > > >for
> > > > > >the version you are using from this page:
> > > >http://jakarta.apache.org/tomcat/
> > > > > >
> > > > > >-james
> > > > > >
> > > > > >Quoting J H <do...@hotmail.com>:
> > > > > >
> > > > > > > Well, I started out using Eclipse to create WAR files for both
> > > > > > > webapplications (axis and interface), but I never ran the two in
> > > >unison
> > > > > > > through Eclipse.
> > > > > > >
> > > > > > > Is there a way to change the port that a servlet runs on?
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Jeff
> > > > > > >
> > > > > > > >From: James Wilson <wi...@ociweb.com>
> > > > > > > >Reply-To: axis-user@ws.apache.org
> > > > > > > >To: axis-user@ws.apache.org
> > > > > > > >Subject: Re: Change the Port that Axis Service runs as
> > > > > > > >Date: Thu, 04 Aug 2005 07:38:56 -0500
> > > > > > > >
> > > > > > > >I haven't been using Axis all that long either.  However I
> >don't
> > > >think
> > > > > >Axis
> > > > > > > >itself can run on a port.  Thus the application fighting over
> >port
> > > >8080
> > > > > > > >would
> > > > > > > >be your servlet container.  Are you starting Tomcat via an
> >Eclipse
> > > > > >plugin?
> > > > > > > >
> > > > > > > >hope it helps,
> > > > > > > >james
> > > > > > > >
> > > > > > > >
> > > > > > > >Quoting J H <do...@hotmail.com>:
> > > > > > > >
> > > > > > > > > Hi Everyone.  This is my first time e-mailing this list,
> >because
> > > >the
> > > > > > > > > documentation out there for this project has been fantastic!
> > > > > >(Thanks to
> > > > > > > >the
> > > > > > > > > Axis and Eclipse participants).
> > > > > > > > >
> > > > > > > > > I have built a self-contained web application (service) that
> > > > > >implements
> > > > > > > >the
> > > > > > > > > Axis libraries.  I have another webapplication that I would
> >like
> > > >to
> > > > > >be
> > > > > > > >able
> > > > > > > > > to run on the same application server that talks to this
> >custom
> > > >axis
> > > > > > > >service
> > > > > > > > > to send messages back and forth to my client.  It seems that
> >the
> > > >two
> > > > > > > > > applications are fighting over the default port 8080.  I
> >have
> > > > > >confirmed
> > > > > > > >this
> > > > > > > > > by installing the 2 webservices on different machines, and
> >the
> > > > > >solution
> > > > > > > > > works great.  I know it must be a simple solution, but I
> >can't
> > > >find
> > > > > >out
> > > > > > > > > anywhere how to change the port that Axis runs as.
> > > > > > > > >
> > > > > > > > > Thanks!
> > > > > > > > > Jeff
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
>
>
>

Re: Change the Port that Axis Service runs as

Posted by J H <do...@hotmail.com>.
Thanks for trying this on your computer!  I have basically the same 
configuration, JDK 5, Tomcat 5.5, and Axis 1.2.1.

1st Webapp
------------------
Slide
(Handles External Webdav Requests via http://localhost:8080/mywebdav, makes 
axis/soap calls to the second webapp inside of the Tomcat container to get 
the data from the database.)


2nd Webapp
------------------
Self Contained Axis Webapp (I just made my own webapp and included the axis 
jars in the web-inf/lib directory)
(Handles Requests from the 1st Webapp, via 
http://localhost:8080/myservice/services/MyService and retrieves data from a 
database via JDBC)


>From: James Wilson <wi...@ociweb.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: Change the Port that Axis Service runs as
>Date: Fri, 05 Aug 2005 08:06:07 -0500
>
>I just setup a quick sample.  Using Axis 1.2.1 and Tomcat 5.5 running in 
>JRE 5.0
>I installed a second web app into tomcat.  It worked.
>
>I installed the two web apps by putting XML config files under
>CATALINA_HOME/conf/Catalina/localhost/ like below.  Both pointed at two
>different exploded-war directories
>     <?xml version="1.0" encoding="utf-8"?>
>     <Context docBase="C:/dev/client/war" path="/client" reloadable="true">
>     </Context>
>
>I then start Tomcat using the this command (allows remote debug from 
>eclipse):
>     %CATALINA_HOME%\bin\catalina.bat jpda start
>
>This is my standard development procedure.  My client connected to the Axis
>server via:
>    MyServiceLocator loc = new MyServiceLocator();
>    
>loc.setMyPortEndpointAddress("http://127.0.0.1:8080/server/services/MyPort");
>    MyPortType port = loc.getMyPort();
>    port.invokeMyFunction();
>
>
>Hows is your procedure different?  I don't know if it's important, but 
>during
>this test I had all of the Axis jar dependencies in both war/WEB-INF/lib
>directories (duplicated).
>
>Quoting J H <do...@hotmail.com>:
>
> > Here's is the complete stack trace...
> >
> > Again, the scenario is that when I install the 2 wars on seperate 
>machines,
> > everything works fine.  When I install the wars on the same machine, 
>nothing
> > works and I get the message pasted below after about 5 minutes from the
> > first client axis/soap call.
> >
> > My theory is that both webapplications are serving out to port 8080 and 
>when
> > the axis client is trying to communicate with the axis server it 
>connects to
> > port 8080, but it is talking to the wrong webapp.  That is why 
>everything
> > works fine when I move the webapps to different machines.
> >
> > Thanks again,
> > Jeff
> >
> > Caught SOAPException :; nested exception is:
> > 	java.net.SocketTimeoutException: Read timed out
> > AxisFault
> > faultCode: 
>{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> > faultSubcode:
> > faultString: java.net.SocketTimeoutException: Read timed out
> > faultActor:
> > faultNode:
> > faultDetail:
> > 
>	{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException:
> > Read timed out
> > 	at java.net.SocketInputStream.socketRead0(Native Method)
> > 	at java.net.SocketInputStream.read(SocketInputStream.java:129)
> > 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> > 	at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> > 	at
> >
>org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> > 	at 
>org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> > 	at
> >
>org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> > 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> > 	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> > 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> > 	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> > 	at org.apache.axis.client.Call.invoke(Call.java:2748)
> > 	at org.apache.axis.client.Call.invoke(Call.java:2424)
> > 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> > 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> > 	at com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> > 	at
> > 
>com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> > 	at
> > 
>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> > 	at 
>org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> > 	at
> >
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> > 	at
> >
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> > 	at
> > 
>org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> > 	at
> >
>org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> > 	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> > 	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> > 	at org.apache.slide.common.Domain.init(Domain.java:478)
> > 	at org.apache.slide.common.Domain.init(Domain.java:412)
> > 	at org.apache.slide.common.Domain.init(Domain.java:375)
> > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > 	at
> > 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > 	at 
>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > 	at
> >
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > 	at
> > 
>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > 	at 
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > 	at 
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > 	at 
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > 	at 
>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > 	at 
>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > 	at
> > 
>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > 	at
> > 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > 	at
> >
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > 	at
> > 
>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > 	at
> > 
>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> >
> > 	{http://xml.apache.org/axis/}hostname:win2kjeff
> >
> > java.net.SocketTimeoutException: Read timed out
> > 	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> > 	at 
>org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
> > 	at
> >
>org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> > 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> > 	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> > 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> > 	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> > 	at org.apache.axis.client.Call.invoke(Call.java:2748)
> > 	at org.apache.axis.client.Call.invoke(Call.java:2424)
> > 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> > 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> > 	at com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> > 	at
> > 
>com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> > 	at
> > 
>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> > 	at 
>org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> > 	at
> >
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> > 	at
> >
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> > 	at
> > 
>org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> > 	at
> >
>org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> > 	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> > 	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> > 	at org.apache.slide.common.Domain.init(Domain.java:478)
> > 	at org.apache.slide.common.Domain.init(Domain.java:412)
> > 	at org.apache.slide.common.Domain.init(Domain.java:375)
> > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > 	at
> > 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > 	at 
>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > 	at
> >
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > 	at
> > 
>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > 	at 
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > 	at 
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > 	at 
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > 	at 
>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > 	at 
>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > 	at
> > 
>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > 	at
> > 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > 	at
> >
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > 	at
> > 
>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > 	at
> > 
>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > Caused by: java.net.SocketTimeoutException: Read timed out
> > 	at java.net.SocketInputStream.socketRead0(Native Method)
> > 	at java.net.SocketInputStream.read(SocketInputStream.java:129)
> > 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> > 	at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> > 	at
> >
>org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> > 	at 
>org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> > 	... 42 more
> > org.apache.slide.common.ServiceAccessException: Service
> > com.project.slide.store.SecurityStore@1071521 access error : ; nested
> > exception is:
> > 	java.net.SocketTimeoutException: Read timed out
> > 	at
> > 
>com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:135)
> > 	at
> > 
>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> > 	at 
>org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> > 	at
> >
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> > 	at
> >
>org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> > 	at
> > 
>org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> > 	at
> >
>org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> > 	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> > 	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> > 	at org.apache.slide.common.Domain.init(Domain.java:478)
> > 	at org.apache.slide.common.Domain.init(Domain.java:412)
> > 	at org.apache.slide.common.Domain.init(Domain.java:375)
> > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > 	at
> > 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > 	at 
>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > 	at
> >
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > 	at
> > 
>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > 	at 
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > 	at 
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > 	at 
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > 	at 
>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > 	at 
>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > 	at
> > 
>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > 	at
> > 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > 	at
> >
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > 	at
> > 
>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > 	at
> > 
>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > org.apache.slide.structure.ObjectNotFoundException: No object found at
> > /actions
> > 	at
> >
>slidestore.reference.MemoryDescriptorsStore.retrieveObject(MemoryDescriptorsStore.java:251)
> > 	at
> > 
>org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:539)
> > 	at
> > 
>org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:177)
> > 	at
> >
>org.apache.slide.common.NamespaceConfig.getActionNode(NamespaceConfig.java:1106)
> > 	at
> >
>org.apache.slide.common.NamespaceConfig.initializeNamespaceConfig(NamespaceConfig.java:596)
> > 	at 
>org.apache.slide.common.Namespace.loadConfiguration(Namespace.java:888)
> > 	at org.apache.slide.common.Domain.initNamespace(Domain.java:864)
> > 	at org.apache.slide.common.Domain.init(Domain.java:478)
> > 	at org.apache.slide.common.Domain.init(Domain.java:412)
> > 	at org.apache.slide.common.Domain.init(Domain.java:375)
> > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > 	at
> > 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > 	at 
>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > 	at
> >
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > 	at
> > 
>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > 	at 
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > 	at 
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > 	at 
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > 	at 
>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > 	at 
>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > 	at
> > 
>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > 	at
> > 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > 	at
> >
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > 	at
> > 
>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > 	at
> > 
>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > java.lang.NullPointerException
> > 	at
> > 
>org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> > 	at
> >
>org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> > 	at org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > 	at
> > 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > 	at 
>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> > 	at
> >
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> > 	at
> > 
>org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> > 	at 
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > 	at 
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > 	at 
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > 	at 
>org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > 	at 
>org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> > 	at
> > 
>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> > 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > 	at
> > 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > 	at
> >
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > 	at java.lang.reflect.Method.invoke(Method.java:324)
> > 	at
> > 
>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> > 	at
> > 
>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> > java.lang.NullPointerException
> > 	at
> > 
>org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> > 	at
> >
>org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> > 	at org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> > 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> > 	at
> > 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> > 	at
> > 
>org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
> > 	at
> >
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> > 	at
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > 	at
> > 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > 	at 
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > 	at
> >
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> > 	at
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > 	at
> >
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
> > 	at
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> > 	at
> > 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > 	at 
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > 	at
> > 
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
> > 	at
> > 
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> > 	at
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > 	at
> >
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> > 	at
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> > 	at
> > 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> > 	at
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> > 	at
> > 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > 	at 
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > 	at
> >
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> > 	at
> >
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> > 	at
> > 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > 	at 
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > 	at 
>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> > 	at
> > 
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
> > 	at
> >
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
> > 	at
> > 
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> > 	at
> >
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
> > 	at java.lang.Thread.run(Thread.java:534)
> >
> >
> >
> > >From: James Wilson <wi...@ociweb.com>
> > >Reply-To: axis-user@ws.apache.org
> > >To: axis-user@ws.apache.org, J H <do...@hotmail.com>
> > >CC: axis-user@ws.apache.org
> > >Subject: Re: Change the Port that Axis Service runs as
> > >Date: Thu, 04 Aug 2005 13:07:49 -0500
> > >
> > >What is the actuall error/exceptions you are seeing?  Before you make a
> > >request
> > >to your client application, can you successfully request the services 
>wsdl
> > >from
> > >axis (http://localhost:9090/axis/services/MyPort?wsdl)?
> > >
> > >Quoting J H <do...@hotmail.com>:
> > >
> > > > They are both setup to use different URI's, but I think what is 
>going on
> > >is
> > > > that the first webapp is listening through port 8080 for slide 
>messages
> > >and
> > > > the second, axis, webapp/service is listening for soap requests.
> > > >
> > > > When the slide webapp receives a request it starts up a axis call to 
>the
> > > > axis server which is also running on port 8080 and the whole tomcat
> > > > container becomes unstable.
> > > >
> > > > I REALLY appreciate your help!  I'm scouring the web looking for 
>someone
> > >who
> > > > has done something similar.  It seems like changing the port for 
>axis
> > >would
> > > > be something people would commonly do, is that assumption incorrect?
> > > >
> > > > Thanks,
> > > > Jeff
> > > >
> > > > >From: James Wilson <wi...@ociweb.com>
> > > > >Reply-To: axis-user@ws.apache.org
> > > > >To: axis-user@ws.apache.org
> > > > >Subject: Re: Change the Port that Axis Service runs as
> > > > >Date: Thu, 04 Aug 2005 11:28:44 -0500
> > > > >
> > > > >This is sounding more and more like a it's not really an Axis 
>question,
> > >but
> > > > >a
> > > > >servlet container question.
> > > > >
> > > > >I'm assuming when you say port, you're talking about TCP/IP port.  
>The
> > >port
> > > > >is
> > > > >maintained by the servlet container.  If you are developing two 
>WARs at
> > >the
> > > > >same time, I recommend deploying both to the same instance of 
>Tomcat
> > >(or
> > > > >some
> > > > >other container).  Then you would access the two web applications 
>via
> > >the
> > > > >same
> > > > >port, but different URI
> > > > >     http://localhost:8080/axis
> > > > >     http://localhost:8080/interface
> > > > >
> > > > >where one war was axis.war and the other was interface.war.
> > > > >
> > > > >Too answer your question about changing the port, Tomcat controls 
>this
> > >in
> > > > >CATALINA_HOME/conf/server.xml.  Look for the <Connector> element.  
>You
> > >can
> > > > >learn more about Tomcat administration by following the 
>Documentation
> > >link
> > > > >for
> > > > >the version you are using from this page:
> > >http://jakarta.apache.org/tomcat/
> > > > >
> > > > >-james
> > > > >
> > > > >Quoting J H <do...@hotmail.com>:
> > > > >
> > > > > > Well, I started out using Eclipse to create WAR files for both
> > > > > > webapplications (axis and interface), but I never ran the two in
> > >unison
> > > > > > through Eclipse.
> > > > > >
> > > > > > Is there a way to change the port that a servlet runs on?
> > > > > >
> > > > > > Thanks,
> > > > > > Jeff
> > > > > >
> > > > > > >From: James Wilson <wi...@ociweb.com>
> > > > > > >Reply-To: axis-user@ws.apache.org
> > > > > > >To: axis-user@ws.apache.org
> > > > > > >Subject: Re: Change the Port that Axis Service runs as
> > > > > > >Date: Thu, 04 Aug 2005 07:38:56 -0500
> > > > > > >
> > > > > > >I haven't been using Axis all that long either.  However I 
>don't
> > >think
> > > > >Axis
> > > > > > >itself can run on a port.  Thus the application fighting over 
>port
> > >8080
> > > > > > >would
> > > > > > >be your servlet container.  Are you starting Tomcat via an 
>Eclipse
> > > > >plugin?
> > > > > > >
> > > > > > >hope it helps,
> > > > > > >james
> > > > > > >
> > > > > > >
> > > > > > >Quoting J H <do...@hotmail.com>:
> > > > > > >
> > > > > > > > Hi Everyone.  This is my first time e-mailing this list, 
>because
> > >the
> > > > > > > > documentation out there for this project has been fantastic!
> > > > >(Thanks to
> > > > > > >the
> > > > > > > > Axis and Eclipse participants).
> > > > > > > >
> > > > > > > > I have built a self-contained web application (service) that
> > > > >implements
> > > > > > >the
> > > > > > > > Axis libraries.  I have another webapplication that I would 
>like
> > >to
> > > > >be
> > > > > > >able
> > > > > > > > to run on the same application server that talks to this 
>custom
> > >axis
> > > > > > >service
> > > > > > > > to send messages back and forth to my client.  It seems that 
>the
> > >two
> > > > > > > > applications are fighting over the default port 8080.  I 
>have
> > > > >confirmed
> > > > > > >this
> > > > > > > > by installing the 2 webservices on different machines, and 
>the
> > > > >solution
> > > > > > > > works great.  I know it must be a simple solution, but I 
>can't
> > >find
> > > > >out
> > > > > > > > anywhere how to change the port that Axis runs as.
> > > > > > > >
> > > > > > > > Thanks!
> > > > > > > > Jeff
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> >
> >
> >



Re: Change the Port that Axis Service runs as

Posted by James Wilson <wi...@ociweb.com>.
I just setup a quick sample.  Using Axis 1.2.1 and Tomcat 5.5 running in JRE 5.0
I installed a second web app into tomcat.  It worked.

I installed the two web apps by putting XML config files under
CATALINA_HOME/conf/Catalina/localhost/ like below.  Both pointed at two
different exploded-war directories
    <?xml version="1.0" encoding="utf-8"?>
    <Context docBase="C:/dev/client/war" path="/client" reloadable="true">
    </Context>

I then start Tomcat using the this command (allows remote debug from eclipse):
    %CATALINA_HOME%\bin\catalina.bat jpda start

This is my standard development procedure.  My client connected to the Axis
server via:
   MyServiceLocator loc = new MyServiceLocator();
   loc.setMyPortEndpointAddress("http://127.0.0.1:8080/server/services/MyPort");
   MyPortType port = loc.getMyPort();
   port.invokeMyFunction();


Hows is your procedure different?  I don't know if it's important, but during
this test I had all of the Axis jar dependencies in both war/WEB-INF/lib
directories (duplicated).

Quoting J H <do...@hotmail.com>:

> Here's is the complete stack trace...
>
> Again, the scenario is that when I install the 2 wars on seperate machines,
> everything works fine.  When I install the wars on the same machine, nothing
> works and I get the message pasted below after about 5 minutes from the
> first client axis/soap call.
>
> My theory is that both webapplications are serving out to port 8080 and when
> the axis client is trying to communicate with the axis server it connects to
> port 8080, but it is talking to the wrong webapp.  That is why everything
> works fine when I move the webapps to different machines.
>
> Thanks again,
> Jeff
>
> Caught SOAPException :; nested exception is:
> 	java.net.SocketTimeoutException: Read timed out
> AxisFault
> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode:
> faultString: java.net.SocketTimeoutException: Read timed out
> faultActor:
> faultNode:
> faultDetail:
> 	{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException:
> Read timed out
> 	at java.net.SocketInputStream.socketRead0(Native Method)
> 	at java.net.SocketInputStream.read(SocketInputStream.java:129)
> 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> 	at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> 	at
>
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> 	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> 	at
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> 	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> 	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> 	at org.apache.axis.client.Call.invoke(Call.java:2748)
> 	at org.apache.axis.client.Call.invoke(Call.java:2424)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	at com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> 	at
> com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> 	at
> org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> 	at org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> 	at
>
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> 	at
>
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> 	at
> org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> 	at
>
org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> 	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> 	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> 	at org.apache.slide.common.Domain.init(Domain.java:478)
> 	at org.apache.slide.common.Domain.init(Domain.java:412)
> 	at org.apache.slide.common.Domain.init(Domain.java:375)
> 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> 	at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> 	at
> org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at
> org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> 	at
> org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
>
> 	{http://xml.apache.org/axis/}hostname:win2kjeff
>
> java.net.SocketTimeoutException: Read timed out
> 	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> 	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
> 	at
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> 	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> 	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> 	at org.apache.axis.client.Call.invoke(Call.java:2748)
> 	at org.apache.axis.client.Call.invoke(Call.java:2424)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	at com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
> 	at
> com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
> 	at
> org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> 	at org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> 	at
>
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> 	at
>
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> 	at
> org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> 	at
>
org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> 	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> 	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> 	at org.apache.slide.common.Domain.init(Domain.java:478)
> 	at org.apache.slide.common.Domain.init(Domain.java:412)
> 	at org.apache.slide.common.Domain.init(Domain.java:375)
> 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> 	at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> 	at
> org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at
> org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> 	at
> org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> Caused by: java.net.SocketTimeoutException: Read timed out
> 	at java.net.SocketInputStream.socketRead0(Native Method)
> 	at java.net.SocketInputStream.read(SocketInputStream.java:129)
> 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> 	at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> 	at
>
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
> 	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
> 	... 42 more
> org.apache.slide.common.ServiceAccessException: Service
> com.project.slide.store.SecurityStore@1071521 access error : ; nested
> exception is:
> 	java.net.SocketTimeoutException: Read timed out
> 	at
> com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:135)
> 	at
> org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
> 	at org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
> 	at
>
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
> 	at
>
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
> 	at
> org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
> 	at
>
org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
> 	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
> 	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
> 	at org.apache.slide.common.Domain.init(Domain.java:478)
> 	at org.apache.slide.common.Domain.init(Domain.java:412)
> 	at org.apache.slide.common.Domain.init(Domain.java:375)
> 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> 	at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> 	at
> org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at
> org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> 	at
> org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> org.apache.slide.structure.ObjectNotFoundException: No object found at
> /actions
> 	at
>
slidestore.reference.MemoryDescriptorsStore.retrieveObject(MemoryDescriptorsStore.java:251)
> 	at
> org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:539)
> 	at
> org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:177)
> 	at
>
org.apache.slide.common.NamespaceConfig.getActionNode(NamespaceConfig.java:1106)
> 	at
>
org.apache.slide.common.NamespaceConfig.initializeNamespaceConfig(NamespaceConfig.java:596)
> 	at org.apache.slide.common.Namespace.loadConfiguration(Namespace.java:888)
> 	at org.apache.slide.common.Domain.initNamespace(Domain.java:864)
> 	at org.apache.slide.common.Domain.init(Domain.java:478)
> 	at org.apache.slide.common.Domain.init(Domain.java:412)
> 	at org.apache.slide.common.Domain.init(Domain.java:375)
> 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> 	at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> 	at
> org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at
> org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> 	at
> org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> java.lang.NullPointerException
> 	at
> org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> 	at
>
org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> 	at org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> 	at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> 	at
> org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at
> org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
> 	at
> org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
> java.lang.NullPointerException
> 	at
> org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
> 	at
>
org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
> 	at org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
> 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> 	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 	at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
> 	at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
> 	at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> 	at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
> 	at java.lang.Thread.run(Thread.java:534)
>
>
>
> >From: James Wilson <wi...@ociweb.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org, J H <do...@hotmail.com>
> >CC: axis-user@ws.apache.org
> >Subject: Re: Change the Port that Axis Service runs as
> >Date: Thu, 04 Aug 2005 13:07:49 -0500
> >
> >What is the actuall error/exceptions you are seeing?  Before you make a
> >request
> >to your client application, can you successfully request the services wsdl
> >from
> >axis (http://localhost:9090/axis/services/MyPort?wsdl)?
> >
> >Quoting J H <do...@hotmail.com>:
> >
> > > They are both setup to use different URI's, but I think what is going on
> >is
> > > that the first webapp is listening through port 8080 for slide messages
> >and
> > > the second, axis, webapp/service is listening for soap requests.
> > >
> > > When the slide webapp receives a request it starts up a axis call to the
> > > axis server which is also running on port 8080 and the whole tomcat
> > > container becomes unstable.
> > >
> > > I REALLY appreciate your help!  I'm scouring the web looking for someone
> >who
> > > has done something similar.  It seems like changing the port for axis
> >would
> > > be something people would commonly do, is that assumption incorrect?
> > >
> > > Thanks,
> > > Jeff
> > >
> > > >From: James Wilson <wi...@ociweb.com>
> > > >Reply-To: axis-user@ws.apache.org
> > > >To: axis-user@ws.apache.org
> > > >Subject: Re: Change the Port that Axis Service runs as
> > > >Date: Thu, 04 Aug 2005 11:28:44 -0500
> > > >
> > > >This is sounding more and more like a it's not really an Axis question,
> >but
> > > >a
> > > >servlet container question.
> > > >
> > > >I'm assuming when you say port, you're talking about TCP/IP port.  The
> >port
> > > >is
> > > >maintained by the servlet container.  If you are developing two WARs at
> >the
> > > >same time, I recommend deploying both to the same instance of Tomcat
> >(or
> > > >some
> > > >other container).  Then you would access the two web applications via
> >the
> > > >same
> > > >port, but different URI
> > > >     http://localhost:8080/axis
> > > >     http://localhost:8080/interface
> > > >
> > > >where one war was axis.war and the other was interface.war.
> > > >
> > > >Too answer your question about changing the port, Tomcat controls this
> >in
> > > >CATALINA_HOME/conf/server.xml.  Look for the <Connector> element.  You
> >can
> > > >learn more about Tomcat administration by following the Documentation
> >link
> > > >for
> > > >the version you are using from this page:
> >http://jakarta.apache.org/tomcat/
> > > >
> > > >-james
> > > >
> > > >Quoting J H <do...@hotmail.com>:
> > > >
> > > > > Well, I started out using Eclipse to create WAR files for both
> > > > > webapplications (axis and interface), but I never ran the two in
> >unison
> > > > > through Eclipse.
> > > > >
> > > > > Is there a way to change the port that a servlet runs on?
> > > > >
> > > > > Thanks,
> > > > > Jeff
> > > > >
> > > > > >From: James Wilson <wi...@ociweb.com>
> > > > > >Reply-To: axis-user@ws.apache.org
> > > > > >To: axis-user@ws.apache.org
> > > > > >Subject: Re: Change the Port that Axis Service runs as
> > > > > >Date: Thu, 04 Aug 2005 07:38:56 -0500
> > > > > >
> > > > > >I haven't been using Axis all that long either.  However I don't
> >think
> > > >Axis
> > > > > >itself can run on a port.  Thus the application fighting over port
> >8080
> > > > > >would
> > > > > >be your servlet container.  Are you starting Tomcat via an Eclipse
> > > >plugin?
> > > > > >
> > > > > >hope it helps,
> > > > > >james
> > > > > >
> > > > > >
> > > > > >Quoting J H <do...@hotmail.com>:
> > > > > >
> > > > > > > Hi Everyone.  This is my first time e-mailing this list, because
> >the
> > > > > > > documentation out there for this project has been fantastic!
> > > >(Thanks to
> > > > > >the
> > > > > > > Axis and Eclipse participants).
> > > > > > >
> > > > > > > I have built a self-contained web application (service) that
> > > >implements
> > > > > >the
> > > > > > > Axis libraries.  I have another webapplication that I would like
> >to
> > > >be
> > > > > >able
> > > > > > > to run on the same application server that talks to this custom
> >axis
> > > > > >service
> > > > > > > to send messages back and forth to my client.  It seems that the
> >two
> > > > > > > applications are fighting over the default port 8080.  I have
> > > >confirmed
> > > > > >this
> > > > > > > by installing the 2 webservices on different machines, and the
> > > >solution
> > > > > > > works great.  I know it must be a simple solution, but I can't
> >find
> > > >out
> > > > > > > anywhere how to change the port that Axis runs as.
> > > > > > >
> > > > > > > Thanks!
> > > > > > > Jeff
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
>
>
>

Re: Change the Port that Axis Service runs as

Posted by J H <do...@hotmail.com>.
Here's is the complete stack trace...

Again, the scenario is that when I install the 2 wars on seperate machines, 
everything works fine.  When I install the wars on the same machine, nothing 
works and I get the message pasted below after about 5 minutes from the 
first client axis/soap call.

My theory is that both webapplications are serving out to port 8080 and when 
the axis client is trying to communicate with the axis server it connects to 
port 8080, but it is talking to the wrong webapp.  That is why everything 
works fine when I move the webapps to different machines.

Thanks again,
Jeff

Caught SOAPException :; nested exception is:
	java.net.SocketTimeoutException: Read timed out
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketTimeoutException: Read timed out
faultActor:
faultNode:
faultDetail:
	{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException: 
Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:129)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
	at 
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
	at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
	at org.apache.axis.client.Call.invoke(Call.java:2748)
	at org.apache.axis.client.Call.invoke(Call.java:2424)
	at org.apache.axis.client.Call.invoke(Call.java:2347)
	at org.apache.axis.client.Call.invoke(Call.java:1804)
	at com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
	at 
com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
	at 
org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
	at org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
	at 
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
	at 
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
	at 
org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
	at 
org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
	at org.apache.slide.common.Domain.init(Domain.java:478)
	at org.apache.slide.common.Domain.init(Domain.java:412)
	at org.apache.slide.common.Domain.init(Domain.java:375)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
	at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
	at 
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
	at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)

	{http://xml.apache.org/axis/}hostname:win2kjeff

java.net.SocketTimeoutException: Read timed out
	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
	at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
	at org.apache.axis.client.Call.invoke(Call.java:2748)
	at org.apache.axis.client.Call.invoke(Call.java:2424)
	at org.apache.axis.client.Call.invoke(Call.java:2347)
	at org.apache.axis.client.Call.invoke(Call.java:1804)
	at com.project.slide.store.SoapMessage.sendMessage(SoapMessage.java:51)
	at 
com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:118)
	at 
org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
	at org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
	at 
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
	at 
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
	at 
org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
	at 
org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
	at org.apache.slide.common.Domain.init(Domain.java:478)
	at org.apache.slide.common.Domain.init(Domain.java:412)
	at org.apache.slide.common.Domain.init(Domain.java:375)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
	at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
	at 
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
	at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
Caused by: java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:129)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
	at 
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
	... 42 more
org.apache.slide.common.ServiceAccessException: Service 
com.project.slide.store.SecurityStore@1071521 access error : ; nested 
exception is:
	java.net.SocketTimeoutException: Read timed out
	at 
com.project.slide.store.SecurityStore.retrieveObject(SecurityStore.java:135)
	at 
org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
	at org.apache.slide.structure.StructureImpl.create(StructureImpl.java:321)
	at 
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:194)
	at 
org.apache.slide.common.XMLUnmarshaller.loadObjectNode(XMLUnmarshaller.java:299)
	at 
org.apache.slide.common.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:126)
	at 
org.apache.slide.common.NamespaceAccessTokenImpl.importData(NamespaceAccessTokenImpl.java:306)
	at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:821)
	at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
	at org.apache.slide.common.Domain.init(Domain.java:478)
	at org.apache.slide.common.Domain.init(Domain.java:412)
	at org.apache.slide.common.Domain.init(Domain.java:375)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
	at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
	at 
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
	at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
org.apache.slide.structure.ObjectNotFoundException: No object found at 
/actions
	at 
slidestore.reference.MemoryDescriptorsStore.retrieveObject(MemoryDescriptorsStore.java:251)
	at 
org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:539)
	at 
org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:177)
	at 
org.apache.slide.common.NamespaceConfig.getActionNode(NamespaceConfig.java:1106)
	at 
org.apache.slide.common.NamespaceConfig.initializeNamespaceConfig(NamespaceConfig.java:596)
	at org.apache.slide.common.Namespace.loadConfiguration(Namespace.java:888)
	at org.apache.slide.common.Domain.initNamespace(Domain.java:864)
	at org.apache.slide.common.Domain.init(Domain.java:478)
	at org.apache.slide.common.Domain.init(Domain.java:412)
	at org.apache.slide.common.Domain.init(Domain.java:375)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:286)
	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
	at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
	at 
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
	at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
java.lang.NullPointerException
	at 
org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
	at 
org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
	at org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
	at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
	at 
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
	at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
java.lang.NullPointerException
	at 
org.apache.slide.common.NamespaceConfig.getParameter(NamespaceConfig.java:534)
	at 
org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:133)
	at org.apache.slide.common.Domain.accessNamespace(Domain.java:289)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:296)
	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
	at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:228)
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
	at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
	at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:534)



>From: James Wilson <wi...@ociweb.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org, J H <do...@hotmail.com>
>CC: axis-user@ws.apache.org
>Subject: Re: Change the Port that Axis Service runs as
>Date: Thu, 04 Aug 2005 13:07:49 -0500
>
>What is the actuall error/exceptions you are seeing?  Before you make a 
>request
>to your client application, can you successfully request the services wsdl 
>from
>axis (http://localhost:9090/axis/services/MyPort?wsdl)?
>
>Quoting J H <do...@hotmail.com>:
>
> > They are both setup to use different URI's, but I think what is going on 
>is
> > that the first webapp is listening through port 8080 for slide messages 
>and
> > the second, axis, webapp/service is listening for soap requests.
> >
> > When the slide webapp receives a request it starts up a axis call to the
> > axis server which is also running on port 8080 and the whole tomcat
> > container becomes unstable.
> >
> > I REALLY appreciate your help!  I'm scouring the web looking for someone 
>who
> > has done something similar.  It seems like changing the port for axis 
>would
> > be something people would commonly do, is that assumption incorrect?
> >
> > Thanks,
> > Jeff
> >
> > >From: James Wilson <wi...@ociweb.com>
> > >Reply-To: axis-user@ws.apache.org
> > >To: axis-user@ws.apache.org
> > >Subject: Re: Change the Port that Axis Service runs as
> > >Date: Thu, 04 Aug 2005 11:28:44 -0500
> > >
> > >This is sounding more and more like a it's not really an Axis question, 
>but
> > >a
> > >servlet container question.
> > >
> > >I'm assuming when you say port, you're talking about TCP/IP port.  The 
>port
> > >is
> > >maintained by the servlet container.  If you are developing two WARs at 
>the
> > >same time, I recommend deploying both to the same instance of Tomcat 
>(or
> > >some
> > >other container).  Then you would access the two web applications via 
>the
> > >same
> > >port, but different URI
> > >     http://localhost:8080/axis
> > >     http://localhost:8080/interface
> > >
> > >where one war was axis.war and the other was interface.war.
> > >
> > >Too answer your question about changing the port, Tomcat controls this 
>in
> > >CATALINA_HOME/conf/server.xml.  Look for the <Connector> element.  You 
>can
> > >learn more about Tomcat administration by following the Documentation 
>link
> > >for
> > >the version you are using from this page: 
>http://jakarta.apache.org/tomcat/
> > >
> > >-james
> > >
> > >Quoting J H <do...@hotmail.com>:
> > >
> > > > Well, I started out using Eclipse to create WAR files for both
> > > > webapplications (axis and interface), but I never ran the two in 
>unison
> > > > through Eclipse.
> > > >
> > > > Is there a way to change the port that a servlet runs on?
> > > >
> > > > Thanks,
> > > > Jeff
> > > >
> > > > >From: James Wilson <wi...@ociweb.com>
> > > > >Reply-To: axis-user@ws.apache.org
> > > > >To: axis-user@ws.apache.org
> > > > >Subject: Re: Change the Port that Axis Service runs as
> > > > >Date: Thu, 04 Aug 2005 07:38:56 -0500
> > > > >
> > > > >I haven't been using Axis all that long either.  However I don't 
>think
> > >Axis
> > > > >itself can run on a port.  Thus the application fighting over port 
>8080
> > > > >would
> > > > >be your servlet container.  Are you starting Tomcat via an Eclipse
> > >plugin?
> > > > >
> > > > >hope it helps,
> > > > >james
> > > > >
> > > > >
> > > > >Quoting J H <do...@hotmail.com>:
> > > > >
> > > > > > Hi Everyone.  This is my first time e-mailing this list, because 
>the
> > > > > > documentation out there for this project has been fantastic!
> > >(Thanks to
> > > > >the
> > > > > > Axis and Eclipse participants).
> > > > > >
> > > > > > I have built a self-contained web application (service) that
> > >implements
> > > > >the
> > > > > > Axis libraries.  I have another webapplication that I would like 
>to
> > >be
> > > > >able
> > > > > > to run on the same application server that talks to this custom 
>axis
> > > > >service
> > > > > > to send messages back and forth to my client.  It seems that the 
>two
> > > > > > applications are fighting over the default port 8080.  I have
> > >confirmed
> > > > >this
> > > > > > by installing the 2 webservices on different machines, and the
> > >solution
> > > > > > works great.  I know it must be a simple solution, but I can't 
>find
> > >out
> > > > > > anywhere how to change the port that Axis runs as.
> > > > > >
> > > > > > Thanks!
> > > > > > Jeff
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> >
> >
> >



Re: Change the Port that Axis Service runs as

Posted by James Wilson <wi...@ociweb.com>.
What is the actuall error/exceptions you are seeing?  Before you make a request
to your client application, can you successfully request the services wsdl from
axis (http://localhost:9090/axis/services/MyPort?wsdl)?

Quoting J H <do...@hotmail.com>:

> They are both setup to use different URI's, but I think what is going on is
> that the first webapp is listening through port 8080 for slide messages and
> the second, axis, webapp/service is listening for soap requests.
>
> When the slide webapp receives a request it starts up a axis call to the
> axis server which is also running on port 8080 and the whole tomcat
> container becomes unstable.
>
> I REALLY appreciate your help!  I'm scouring the web looking for someone who
> has done something similar.  It seems like changing the port for axis would
> be something people would commonly do, is that assumption incorrect?
>
> Thanks,
> Jeff
>
> >From: James Wilson <wi...@ociweb.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: Change the Port that Axis Service runs as
> >Date: Thu, 04 Aug 2005 11:28:44 -0500
> >
> >This is sounding more and more like a it's not really an Axis question, but
> >a
> >servlet container question.
> >
> >I'm assuming when you say port, you're talking about TCP/IP port.  The port
> >is
> >maintained by the servlet container.  If you are developing two WARs at the
> >same time, I recommend deploying both to the same instance of Tomcat (or
> >some
> >other container).  Then you would access the two web applications via the
> >same
> >port, but different URI
> >     http://localhost:8080/axis
> >     http://localhost:8080/interface
> >
> >where one war was axis.war and the other was interface.war.
> >
> >Too answer your question about changing the port, Tomcat controls this in
> >CATALINA_HOME/conf/server.xml.  Look for the <Connector> element.  You can
> >learn more about Tomcat administration by following the Documentation link
> >for
> >the version you are using from this page: http://jakarta.apache.org/tomcat/
> >
> >-james
> >
> >Quoting J H <do...@hotmail.com>:
> >
> > > Well, I started out using Eclipse to create WAR files for both
> > > webapplications (axis and interface), but I never ran the two in unison
> > > through Eclipse.
> > >
> > > Is there a way to change the port that a servlet runs on?
> > >
> > > Thanks,
> > > Jeff
> > >
> > > >From: James Wilson <wi...@ociweb.com>
> > > >Reply-To: axis-user@ws.apache.org
> > > >To: axis-user@ws.apache.org
> > > >Subject: Re: Change the Port that Axis Service runs as
> > > >Date: Thu, 04 Aug 2005 07:38:56 -0500
> > > >
> > > >I haven't been using Axis all that long either.  However I don't think
> >Axis
> > > >itself can run on a port.  Thus the application fighting over port 8080
> > > >would
> > > >be your servlet container.  Are you starting Tomcat via an Eclipse
> >plugin?
> > > >
> > > >hope it helps,
> > > >james
> > > >
> > > >
> > > >Quoting J H <do...@hotmail.com>:
> > > >
> > > > > Hi Everyone.  This is my first time e-mailing this list, because the
> > > > > documentation out there for this project has been fantastic!
> >(Thanks to
> > > >the
> > > > > Axis and Eclipse participants).
> > > > >
> > > > > I have built a self-contained web application (service) that
> >implements
> > > >the
> > > > > Axis libraries.  I have another webapplication that I would like to
> >be
> > > >able
> > > > > to run on the same application server that talks to this custom axis
> > > >service
> > > > > to send messages back and forth to my client.  It seems that the two
> > > > > applications are fighting over the default port 8080.  I have
> >confirmed
> > > >this
> > > > > by installing the 2 webservices on different machines, and the
> >solution
> > > > > works great.  I know it must be a simple solution, but I can't find
> >out
> > > > > anywhere how to change the port that Axis runs as.
> > > > >
> > > > > Thanks!
> > > > > Jeff
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
>
>
>

Re: Change the Port that Axis Service runs as

Posted by J H <do...@hotmail.com>.
They are both setup to use different URI's, but I think what is going on is 
that the first webapp is listening through port 8080 for slide messages and 
the second, axis, webapp/service is listening for soap requests.

When the slide webapp receives a request it starts up a axis call to the 
axis server which is also running on port 8080 and the whole tomcat 
container becomes unstable.

I REALLY appreciate your help!  I'm scouring the web looking for someone who 
has done something similar.  It seems like changing the port for axis would 
be something people would commonly do, is that assumption incorrect?

Thanks,
Jeff

>From: James Wilson <wi...@ociweb.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: Change the Port that Axis Service runs as
>Date: Thu, 04 Aug 2005 11:28:44 -0500
>
>This is sounding more and more like a it's not really an Axis question, but 
>a
>servlet container question.
>
>I'm assuming when you say port, you're talking about TCP/IP port.  The port 
>is
>maintained by the servlet container.  If you are developing two WARs at the
>same time, I recommend deploying both to the same instance of Tomcat (or 
>some
>other container).  Then you would access the two web applications via the 
>same
>port, but different URI
>     http://localhost:8080/axis
>     http://localhost:8080/interface
>
>where one war was axis.war and the other was interface.war.
>
>Too answer your question about changing the port, Tomcat controls this in
>CATALINA_HOME/conf/server.xml.  Look for the <Connector> element.  You can
>learn more about Tomcat administration by following the Documentation link 
>for
>the version you are using from this page: http://jakarta.apache.org/tomcat/
>
>-james
>
>Quoting J H <do...@hotmail.com>:
>
> > Well, I started out using Eclipse to create WAR files for both
> > webapplications (axis and interface), but I never ran the two in unison
> > through Eclipse.
> >
> > Is there a way to change the port that a servlet runs on?
> >
> > Thanks,
> > Jeff
> >
> > >From: James Wilson <wi...@ociweb.com>
> > >Reply-To: axis-user@ws.apache.org
> > >To: axis-user@ws.apache.org
> > >Subject: Re: Change the Port that Axis Service runs as
> > >Date: Thu, 04 Aug 2005 07:38:56 -0500
> > >
> > >I haven't been using Axis all that long either.  However I don't think 
>Axis
> > >itself can run on a port.  Thus the application fighting over port 8080
> > >would
> > >be your servlet container.  Are you starting Tomcat via an Eclipse 
>plugin?
> > >
> > >hope it helps,
> > >james
> > >
> > >
> > >Quoting J H <do...@hotmail.com>:
> > >
> > > > Hi Everyone.  This is my first time e-mailing this list, because the
> > > > documentation out there for this project has been fantastic!  
>(Thanks to
> > >the
> > > > Axis and Eclipse participants).
> > > >
> > > > I have built a self-contained web application (service) that 
>implements
> > >the
> > > > Axis libraries.  I have another webapplication that I would like to 
>be
> > >able
> > > > to run on the same application server that talks to this custom axis
> > >service
> > > > to send messages back and forth to my client.  It seems that the two
> > > > applications are fighting over the default port 8080.  I have 
>confirmed
> > >this
> > > > by installing the 2 webservices on different machines, and the 
>solution
> > > > works great.  I know it must be a simple solution, but I can't find 
>out
> > > > anywhere how to change the port that Axis runs as.
> > > >
> > > > Thanks!
> > > > Jeff
> > > >
> > > >
> > > >
> >
> >
> >



Re: Change the Port that Axis Service runs as

Posted by James Wilson <wi...@ociweb.com>.
This is sounding more and more like a it's not really an Axis question, but a
servlet container question.

I'm assuming when you say port, you're talking about TCP/IP port.  The port is
maintained by the servlet container.  If you are developing two WARs at the
same time, I recommend deploying both to the same instance of Tomcat (or some
other container).  Then you would access the two web applications via the same
port, but different URI
    http://localhost:8080/axis
    http://localhost:8080/interface

where one war was axis.war and the other was interface.war.

Too answer your question about changing the port, Tomcat controls this in
CATALINA_HOME/conf/server.xml.  Look for the <Connector> element.  You can
learn more about Tomcat administration by following the Documentation link for
the version you are using from this page: http://jakarta.apache.org/tomcat/

-james

Quoting J H <do...@hotmail.com>:

> Well, I started out using Eclipse to create WAR files for both
> webapplications (axis and interface), but I never ran the two in unison
> through Eclipse.
>
> Is there a way to change the port that a servlet runs on?
>
> Thanks,
> Jeff
>
> >From: James Wilson <wi...@ociweb.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: Change the Port that Axis Service runs as
> >Date: Thu, 04 Aug 2005 07:38:56 -0500
> >
> >I haven't been using Axis all that long either.  However I don't think Axis
> >itself can run on a port.  Thus the application fighting over port 8080
> >would
> >be your servlet container.  Are you starting Tomcat via an Eclipse plugin?
> >
> >hope it helps,
> >james
> >
> >
> >Quoting J H <do...@hotmail.com>:
> >
> > > Hi Everyone.  This is my first time e-mailing this list, because the
> > > documentation out there for this project has been fantastic!  (Thanks to
> >the
> > > Axis and Eclipse participants).
> > >
> > > I have built a self-contained web application (service) that implements
> >the
> > > Axis libraries.  I have another webapplication that I would like to be
> >able
> > > to run on the same application server that talks to this custom axis
> >service
> > > to send messages back and forth to my client.  It seems that the two
> > > applications are fighting over the default port 8080.  I have confirmed
> >this
> > > by installing the 2 webservices on different machines, and the solution
> > > works great.  I know it must be a simple solution, but I can't find out
> > > anywhere how to change the port that Axis runs as.
> > >
> > > Thanks!
> > > Jeff
> > >
> > >
> > >
>
>
>

Re: Change the Port that Axis Service runs as

Posted by J H <do...@hotmail.com>.
Well, I started out using Eclipse to create WAR files for both 
webapplications (axis and interface), but I never ran the two in unison 
through Eclipse.

Is there a way to change the port that a servlet runs on?

Thanks,
Jeff

>From: James Wilson <wi...@ociweb.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: Change the Port that Axis Service runs as
>Date: Thu, 04 Aug 2005 07:38:56 -0500
>
>I haven't been using Axis all that long either.  However I don't think Axis
>itself can run on a port.  Thus the application fighting over port 8080 
>would
>be your servlet container.  Are you starting Tomcat via an Eclipse plugin?
>
>hope it helps,
>james
>
>
>Quoting J H <do...@hotmail.com>:
>
> > Hi Everyone.  This is my first time e-mailing this list, because the
> > documentation out there for this project has been fantastic!  (Thanks to 
>the
> > Axis and Eclipse participants).
> >
> > I have built a self-contained web application (service) that implements 
>the
> > Axis libraries.  I have another webapplication that I would like to be 
>able
> > to run on the same application server that talks to this custom axis 
>service
> > to send messages back and forth to my client.  It seems that the two
> > applications are fighting over the default port 8080.  I have confirmed 
>this
> > by installing the 2 webservices on different machines, and the solution
> > works great.  I know it must be a simple solution, but I can't find out
> > anywhere how to change the port that Axis runs as.
> >
> > Thanks!
> > Jeff
> >
> >
> >



Re: Application scope objects that retain data

Posted by Javier Gonzalez <ja...@gmail.com>.
To put it simply, it's a class of wich exactly one instance exists. In
such class you keep your 'persistent' string. It's usually achieved by
making the constructor private (so nobody but the class itself can
call  new SingletonClass(...)) and a static method to access a static
field that holds the one instance. Something like:

public final class MySingleton { // final to avoid multiple instances
by subclassing

 private static MySingleton _instance = new MySingleton();

 private MySingleton(){
   // ... //
 }
 
 public static MySingleton getInstance(){
    return _instance;
 }

 // your useful methods go here
}

that's the general idea. You can get more info here:

http://www.javaworld.com/javaworld/jw-04-2003/jw-0425-designpatterns.html

Or here: (complete, free as in beer, html book on java & patterns)
http://www.pythoncriticalmass.com/downloads/TIPatterns-0.9.zip

On 8/4/05, J.W.F. Thirion <de...@molo.co.za> wrote:
> Thanks for your advice. I did try moving the temp="" part to the top (static
> initializer) and the same thing happens.
> 
> PS: What do you mean by "following the Singleton pattern". I am more from a
> C/C++ background so the terminology is a bit strange to me.
> 
> Thanks for the help!
> Derik
> 
> -----Original Message-----
> From: James Wilson [mailto:wilsonj@ociweb.com]
> Sent: 04 August 2005 15:15
> To: axis-user@ws.apache.org
> Subject: Re: Application scope objects that retain data
> 
> 
> This is interesting.  I can't speak to the Axis internals.  But what this
> shows
> me is that Axis is creating more than one service implementation class.
> Thus
> there is more than one instance of your Test class instanciated even though
> they will live to service many requests.  This is what I would expect for
> Axis
> to support multiple user-request-threads coming in from the Servlet
> container.
> 
> If you move the 'temp=""' line out of the constructor and into a static
> initializer (static String  temp="";) you will get the effect you are
> looking
> for.  But to scale the example, you might want to implement a class
> following
> the Singleton pattern to maintain the application state.
> 
> hope it helps,
> james
> 
> Quoting "J.W.F. Thirion" <de...@molo.co.za>:
> 
> > Hi everyone,
> >
> > I appologise if this has been asked already, but I would like to know the
> > following: Is it possible to have a Java class, e.g. Test in my Test.java,
> > to keep the value of its static variables between calls to the service.
> E.g.
> > I have a static variable temp, to which I just add string data and on each
> > call to getValue the value returned should be the value I passed to the
> > function concatenated to previous String values. So on the first call, if
> I
> > pass "Hello", I would get back "Initial, Hello" and on the second call, if
> I
> > pass "there", I would get back "Initial, Hello there", and so on. The
> object
> > must thus never go out of scope. I assumed that I needed to set the scope
> to
> > application, but that didn't work (I just got back the string "Initial,
> XXX"
> > where XXX is what I passed to getValue - thus the constructor was called
> on
> > each call). Here is my deploy.wsdd file:
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> >     <service name="Test" provider="java:RPC">
> >         <parameter name="scope"          value="application" />
> >         <parameter name="className"      value="Test" />
> >         <parameter name="allowedMethods" value="*" />
> >     </service>
> > </deployment>
> >
> > and here is my class:
> >
> > public class Test {
> >     static boolean bInitialised;
> >     static String  temp;
> >
> >     public Test() {
> >       bInitialised = false;
> >       temp = "";
> >     }
> >
> >     public static synchronized boolean isInitialised() {
> >         return bInitialised;
> >     }
> >
> >     public static synchronized void initialise() {
> >               temp = "Initial, ";
> >               bInitialised = true;
> >     }
> >
> >     public String getValue(String input) {
> >         if (!Test.isInitialised()) {
> >               Test.initialise();
> >         }
> >
> >         temp = temp + input;
> >         return temp;
> >     }
> > }
> >
> > and I have deployed the service with the following:
> >
> > java org.apache.axis.client.AdminClient deploy.wsdd
> >
> > Any help would be greatly appreciated.
> >
> > Kind regards,
> > J.W.F. Thirion (Dérik)
> > E-mail: derik@molo.co.za
> >
> >
> >
> 
> 
> 


-- 
Javier Gonzalez Nicolini

RE: Application scope objects that retain data

Posted by James Wilson <wi...@ociweb.com>.
hmmm, if there was no 'temp=""' in the constructor then it makes me think you
either stoped Tomcat or did a deploy between tests.  I just ran a quick test
with one of the service methods I'm working on.  I also use scope="Application"
and I couldn't get more than one instance of my service implementation created.

>From the Axis users guide, I found ""Application" scope will create a singleton
shared object to service all requests".  This backs up what I just saw in my
test.

Do you think you might have performed a deploy between your previous test steps?

-james

Quoting "J.W.F. Thirion" <de...@molo.co.za>:

> Thanks for your advice. I did try moving the temp="" part to the top (static
> initializer) and the same thing happens.
>
> PS: What do you mean by "following the Singleton pattern". I am more from a
> C/C++ background so the terminology is a bit strange to me.
>
> Thanks for the help!
> Derik
>
> -----Original Message-----
> From: James Wilson [mailto:wilsonj@ociweb.com]
> Sent: 04 August 2005 15:15
> To: axis-user@ws.apache.org
> Subject: Re: Application scope objects that retain data
>
>
> This is interesting.  I can't speak to the Axis internals.  But what this
> shows
> me is that Axis is creating more than one service implementation class.
> Thus
> there is more than one instance of your Test class instanciated even though
> they will live to service many requests.  This is what I would expect for
> Axis
> to support multiple user-request-threads coming in from the Servlet
> container.
>
> If you move the 'temp=""' line out of the constructor and into a static
> initializer (static String  temp="";) you will get the effect you are
> looking
> for.  But to scale the example, you might want to implement a class
> following
> the Singleton pattern to maintain the application state.
>
> hope it helps,
> james
>
> Quoting "J.W.F. Thirion" <de...@molo.co.za>:
>
> > Hi everyone,
> >
> > I appologise if this has been asked already, but I would like to know the
> > following: Is it possible to have a Java class, e.g. Test in my Test.java,
> > to keep the value of its static variables between calls to the service.
> E.g.
> > I have a static variable temp, to which I just add string data and on each
> > call to getValue the value returned should be the value I passed to the
> > function concatenated to previous String values. So on the first call, if
> I
> > pass "Hello", I would get back "Initial, Hello" and on the second call, if
> I
> > pass "there", I would get back "Initial, Hello there", and so on. The
> object
> > must thus never go out of scope. I assumed that I needed to set the scope
> to
> > application, but that didn't work (I just got back the string "Initial,
> XXX"
> > where XXX is what I passed to getValue - thus the constructor was called
> on
> > each call). Here is my deploy.wsdd file:
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> >     <service name="Test" provider="java:RPC">
> >         <parameter name="scope"          value="application" />
> >         <parameter name="className"      value="Test" />
> >         <parameter name="allowedMethods" value="*" />
> >     </service>
> > </deployment>
> >
> > and here is my class:
> >
> > public class Test {
> >     static boolean bInitialised;
> >     static String  temp;
> >
> >     public Test() {
> > 	bInitialised = false;
> > 	temp = "";
> >     }
> >
> >     public static synchronized boolean isInitialised() {
> >         return bInitialised;
> >     }
> >
> >     public static synchronized void initialise() {
> > 		temp = "Initial, ";
> > 		bInitialised = true;
> >     }
> >
> >     public String getValue(String input) {
> >         if (!Test.isInitialised()) {
> > 		Test.initialise();
> >         }
> >
> > 	  temp = temp + input;
> >         return temp;
> >     }
> > }
> >
> > and I have deployed the service with the following:
> >
> > java org.apache.axis.client.AdminClient deploy.wsdd
> >
> > Any help would be greatly appreciated.
> >
> > Kind regards,
> > J.W.F. Thirion (Dérik)
> > E-mail: derik@molo.co.za
> >
> >
> >
>
>
>

RE: Application scope objects that retain data

Posted by "J.W.F. Thirion" <de...@molo.co.za>.
Thanks for your advice. I did try moving the temp="" part to the top (static
initializer) and the same thing happens.

PS: What do you mean by "following the Singleton pattern". I am more from a
C/C++ background so the terminology is a bit strange to me.

Thanks for the help!
Derik

-----Original Message-----
From: James Wilson [mailto:wilsonj@ociweb.com]
Sent: 04 August 2005 15:15
To: axis-user@ws.apache.org
Subject: Re: Application scope objects that retain data


This is interesting.  I can't speak to the Axis internals.  But what this
shows
me is that Axis is creating more than one service implementation class.
Thus
there is more than one instance of your Test class instanciated even though
they will live to service many requests.  This is what I would expect for
Axis
to support multiple user-request-threads coming in from the Servlet
container.

If you move the 'temp=""' line out of the constructor and into a static
initializer (static String  temp="";) you will get the effect you are
looking
for.  But to scale the example, you might want to implement a class
following
the Singleton pattern to maintain the application state.

hope it helps,
james

Quoting "J.W.F. Thirion" <de...@molo.co.za>:

> Hi everyone,
>
> I appologise if this has been asked already, but I would like to know the
> following: Is it possible to have a Java class, e.g. Test in my Test.java,
> to keep the value of its static variables between calls to the service.
E.g.
> I have a static variable temp, to which I just add string data and on each
> call to getValue the value returned should be the value I passed to the
> function concatenated to previous String values. So on the first call, if
I
> pass "Hello", I would get back "Initial, Hello" and on the second call, if
I
> pass "there", I would get back "Initial, Hello there", and so on. The
object
> must thus never go out of scope. I assumed that I needed to set the scope
to
> application, but that didn't work (I just got back the string "Initial,
XXX"
> where XXX is what I passed to getValue - thus the constructor was called
on
> each call). Here is my deploy.wsdd file:
>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>     <service name="Test" provider="java:RPC">
>         <parameter name="scope"          value="application" />
>         <parameter name="className"      value="Test" />
>         <parameter name="allowedMethods" value="*" />
>     </service>
> </deployment>
>
> and here is my class:
>
> public class Test {
>     static boolean bInitialised;
>     static String  temp;
>
>     public Test() {
> 	bInitialised = false;
> 	temp = "";
>     }
>
>     public static synchronized boolean isInitialised() {
>         return bInitialised;
>     }
>
>     public static synchronized void initialise() {
> 		temp = "Initial, ";
> 		bInitialised = true;
>     }
>
>     public String getValue(String input) {
>         if (!Test.isInitialised()) {
> 		Test.initialise();
>         }
>
> 	  temp = temp + input;
>         return temp;
>     }
> }
>
> and I have deployed the service with the following:
>
> java org.apache.axis.client.AdminClient deploy.wsdd
>
> Any help would be greatly appreciated.
>
> Kind regards,
> J.W.F. Thirion (Dérik)
> E-mail: derik@molo.co.za
>
>
>



Re: Application scope objects that retain data

Posted by James Wilson <wi...@ociweb.com>.
This is interesting.  I can't speak to the Axis internals.  But what this shows
me is that Axis is creating more than one service implementation class.  Thus
there is more than one instance of your Test class instanciated even though
they will live to service many requests.  This is what I would expect for Axis
to support multiple user-request-threads coming in from the Servlet container.

If you move the 'temp=""' line out of the constructor and into a static
initializer (static String  temp="";) you will get the effect you are looking
for.  But to scale the example, you might want to implement a class following
the Singleton pattern to maintain the application state.

hope it helps,
james

Quoting "J.W.F. Thirion" <de...@molo.co.za>:

> Hi everyone,
>
> I appologise if this has been asked already, but I would like to know the
> following: Is it possible to have a Java class, e.g. Test in my Test.java,
> to keep the value of its static variables between calls to the service. E.g.
> I have a static variable temp, to which I just add string data and on each
> call to getValue the value returned should be the value I passed to the
> function concatenated to previous String values. So on the first call, if I
> pass "Hello", I would get back "Initial, Hello" and on the second call, if I
> pass "there", I would get back "Initial, Hello there", and so on. The object
> must thus never go out of scope. I assumed that I needed to set the scope to
> application, but that didn't work (I just got back the string "Initial, XXX"
> where XXX is what I passed to getValue - thus the constructor was called on
> each call). Here is my deploy.wsdd file:
>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>     <service name="Test" provider="java:RPC">
>         <parameter name="scope"          value="application" />
>         <parameter name="className"      value="Test" />
>         <parameter name="allowedMethods" value="*" />
>     </service>
> </deployment>
>
> and here is my class:
>
> public class Test {
>     static boolean bInitialised;
>     static String  temp;
>
>     public Test() {
> 	bInitialised = false;
> 	temp = "";
>     }
>
>     public static synchronized boolean isInitialised() {
>         return bInitialised;
>     }
>
>     public static synchronized void initialise() {
> 		temp = "Initial, ";
> 		bInitialised = true;
>     }
>
>     public String getValue(String input) {
>         if (!Test.isInitialised()) {
> 		Test.initialise();
>         }
>
> 	  temp = temp + input;
>         return temp;
>     }
> }
>
> and I have deployed the service with the following:
>
> java org.apache.axis.client.AdminClient deploy.wsdd
>
> Any help would be greatly appreciated.
>
> Kind regards,
> J.W.F. Thirion (Dérik)
> E-mail: derik@molo.co.za
>
>
>

Application scope objects that retain data

Posted by "J.W.F. Thirion" <de...@molo.co.za>.
Hi everyone,

I appologise if this has been asked already, but I would like to know the
following: Is it possible to have a Java class, e.g. Test in my Test.java,
to keep the value of its static variables between calls to the service. E.g.
I have a static variable temp, to which I just add string data and on each
call to getValue the value returned should be the value I passed to the
function concatenated to previous String values. So on the first call, if I
pass "Hello", I would get back "Initial, Hello" and on the second call, if I
pass "there", I would get back "Initial, Hello there", and so on. The object
must thus never go out of scope. I assumed that I needed to set the scope to
application, but that didn't work (I just got back the string "Initial, XXX"
where XXX is what I passed to getValue - thus the constructor was called on
each call). Here is my deploy.wsdd file:

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
    <service name="Test" provider="java:RPC">
        <parameter name="scope"          value="application" />
        <parameter name="className"      value="Test" />
        <parameter name="allowedMethods" value="*" />
    </service>
</deployment>

and here is my class:

public class Test {
    static boolean bInitialised;
    static String  temp;

    public Test() {
	bInitialised = false;
	temp = "";
    }

    public static synchronized boolean isInitialised() {
        return bInitialised;
    }

    public static synchronized void initialise() {
		temp = "Initial, ";
		bInitialised = true;
    }

    public String getValue(String input) {
        if (!Test.isInitialised()) {
		Test.initialise();
        }

	  temp = temp + input;
        return temp;
    }
}

and I have deployed the service with the following:

java org.apache.axis.client.AdminClient deploy.wsdd

Any help would be greatly appreciated.

Kind regards,
J.W.F. Thirion (Dérik)
E-mail: derik@molo.co.za



Re: Change the Port that Axis Service runs as

Posted by trebor iksrazal <ik...@yahoo.com>.
Hi all,

I just subscribed to the list, so I'm replying to
James. 

Is the goal running two seperate web services in the
same servlet container? It seems you are using the
same configuration for both web services. At least one
way to solve it - if I understand the problem
correctly -  is two have seperate .wsdd files, each
with a different urn. 

If that doesn work or is not your problem, try posting
each .wsdd file and the exact stackTrace. 

HTH,
iksrazal


--- James Wilson <wi...@ociweb.com> wrote:

> I haven't been using Axis all that long either. 
> However I don't think Axis
> itself can run on a port.  Thus the application
> fighting over port 8080 would
> be your servlet container.  Are you starting Tomcat
> via an Eclipse plugin?
> 
> hope it helps,
> james
> 
> 
> Quoting J H <do...@hotmail.com>:
> 
> > Hi Everyone.  This is my first time e-mailing this
> list, because the
> > documentation out there for this project has been
> fantastic!  (Thanks to the
> > Axis and Eclipse participants).
> >
> > I have built a self-contained web application
> (service) that implements the
> > Axis libraries.  I have another webapplication
> that I would like to be able
> > to run on the same application server that talks
> to this custom axis service
> > to send messages back and forth to my client.  It
> seems that the two
> > applications are fighting over the default port
> 8080.  I have confirmed this
> > by installing the 2 webservices on different
> machines, and the solution
> > works great.  I know it must be a simple solution,
> but I can't find out
> > anywhere how to change the port that Axis runs as.
> >
> > Thanks!
> > Jeff
> >
> >
> >
> 


"None are more hopelessly enslaved than those who falsely believe they are free. -- Goethe"

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Change the Port that Axis Service runs as

Posted by James Wilson <wi...@ociweb.com>.
I haven't been using Axis all that long either.  However I don't think Axis
itself can run on a port.  Thus the application fighting over port 8080 would
be your servlet container.  Are you starting Tomcat via an Eclipse plugin?

hope it helps,
james


Quoting J H <do...@hotmail.com>:

> Hi Everyone.  This is my first time e-mailing this list, because the
> documentation out there for this project has been fantastic!  (Thanks to the
> Axis and Eclipse participants).
>
> I have built a self-contained web application (service) that implements the
> Axis libraries.  I have another webapplication that I would like to be able
> to run on the same application server that talks to this custom axis service
> to send messages back and forth to my client.  It seems that the two
> applications are fighting over the default port 8080.  I have confirmed this
> by installing the 2 webservices on different machines, and the solution
> works great.  I know it must be a simple solution, but I can't find out
> anywhere how to change the port that Axis runs as.
>
> Thanks!
> Jeff
>
>
>