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 Laurent Perez <do...@free.fr> on 2003/02/17 11:12:37 UTC
Accessibility of servlets within Axis webapp
Hi
I am trying to access a very simple servlet (SimpleServlet) within Axis'
webapp directory (I got a web service working fine but I need to make
that servlet available to public).
I copied SimpleServlet to
/usr/local/tomcat/webapps/axis/WEB-INF/classes, restarted the webapp (I
am using TC4.1.18) but I can't access the servlet with :
http://localhost:8080/axis/servlet/SimpleServlet :(
What's the correct path to access that servlet ?
Thanks for your help
Laurent
Re: Accessibility of servlets within Axis webapp
Posted by Brian Ewins <Br...@btinternet.com>.
You need to add an entry in your web.xml for this servlet, because the
invoker servlet (the one that allows you to execute servlets without
mapping them to an URL) became disabled by default in Tomcat 4.1.12
(this is in the release notes).
The reason this was done was to fix a bug that let people view the
source of your JSPs. See eg
http://www.jguru.com/faq/view.jsp?EID=1004760
-Baz
Laurent Perez wrote:
> Hi
>
> I am trying to access a very simple servlet (SimpleServlet) within Axis'
> webapp directory (I got a web service working fine but I need to make
> that servlet available to public).
>
> I copied SimpleServlet to
> /usr/local/tomcat/webapps/axis/WEB-INF/classes, restarted the webapp (I
> am using TC4.1.18) but I can't access the servlet with :
> http://localhost:8080/axis/servlet/SimpleServlet :(
>
> What's the correct path to access that servlet ?
> Thanks for your help
>
> Laurent
>
>
>
Is it possible to have Handler with Applcation scope , in session scope services
Posted by Apostolopoulos Paris <pa...@freemail.gr>.
Hi!
I want to make some login validation, before the client uses a session
scope service! Due to simplicity, I would like to know if the handler
that is going to check the username and password , can be defined as
application scope and the same instance hanlder to serve all the
sessions! Is that possible? What is going on when multiple session
request end up in the server? The developer has to make tha instace as
thread -safe?
Re: Accessibility of servlets within Axis webapp
Posted by Ingrid Falk <in...@loria.fr>.
>>>>> "Laurent" == Laurent Perez <do...@free.fr> writes:
Laurent> Hi I am trying to access a very simple servlet
Laurent> (SimpleServlet) within Axis' webapp directory (I got a
Laurent> web service working fine but I need to make that servlet
Laurent> available to public).
Laurent> I copied SimpleServlet to
Laurent> /usr/local/tomcat/webapps/axis/WEB-INF/classes, restarted
Laurent> the webapp (I am using TC4.1.18) but I can't access the
Laurent> servlet with :
Laurent> http://localhost:8080/axis/servlet/SimpleServlet :(
you maybe have to add these to the web.xml of the axis webapp:
<servlet>
<servlet-name>SimpleServlet</servlet-name>
<servlet-class>
path.to.the.servlet.class
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SimpleServlet</servlet-name>
<url-pattern>/servlet/SimpleServlet</url-pattern>
</servlet-mapping>
Ingrid
RE: Accessibility of servlets within Axis webapp
Posted by Apostolopoulos Paris <pa...@freemail.gr>.
Have you deplyed properly the service in Tomcat? Using a wsdd file?
Can you see it in the Tomcan Deplyed Services , if you go to the
http://localhost:8080/axis/index.html and then -> View the list of
deployed Web services?
-----Original Message-----
From: Laurent Perez [mailto:downloader@free.fr]
Sent: Monday, February 17, 2003 10:13 AM
To: axis-user@ws.apache.org
Subject: Accessibility of servlets within Axis webapp
Hi
I am trying to access a very simple servlet (SimpleServlet) within Axis'
webapp directory (I got a web service working fine but I need to make
that servlet available to public).
I copied SimpleServlet to
/usr/local/tomcat/webapps/axis/WEB-INF/classes, restarted the webapp (I
am using TC4.1.18) but I can't access the servlet with :
http://localhost:8080/axis/servlet/SimpleServlet :(
What's the correct path to access that servlet ?
Thanks for your help
Laurent