users@jax-rpc.java.net

RE: jax-rpc web.xml getting mangled.

From: Rune Science <runescience_at_yahoo.com>
Date: Mon, 16 May 2005 12:00:48 -0700 (PDT)

Hi Kevin. I did what you said. I created
I created the web.xml file and put in what i needed.
Here is what I put in.

<web-app>
  <display-name>JAX-RPC HelloWorld Web Application
Sample</display-name>
  <description>Sample Application for JAX-RPC using
static stubs.</description>
  <servlet>
    <servlet-name>ActiveShip</servlet-name>
    <init-param>
      <param-name>user</param-name>
      <param-value>me</param-value>
      <param-name>password</param-name>
      <param-value>pw</param-value>
      <param-name>database</param-name>
      <param-value>someconnection</param-value>
    </init-param>
  </servlet>
  <session-config>
    <session-timeout>60</session-timeout>
  </session-config>
</web-app>


The problem is now, it creates a SECOND servlet entry
with the same name. now its got the init-params in the
first occurrance, and the rest of the stuff in second
occurance.

  <servlet>
    <servlet-name>ActiveShip</servlet-name>
    <init-param>
      <param-name>user</param-name>
      <param-value>me</param-value>
      <param-name>password</param-name>
      <param-value>pw</param-value>
      <param-name>database</param-name>
      <param-value>someconnection</param-value>
    </init-param>
  </servlet>
  <servlet>
    <servlet-name>ActiveShip</servlet-name>
    <display-name>ActiveShip</display-name>
    <description>JAX-RPC endpoint -
ActiveShip</description>
   
<servlet-class>com.sun.xml.rpc.server.http.JAXRPCServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>

any more suggestions?




--- Kevin Jones <kevinj_at_develop.com> wrote:
> Create a web.xml file and make sure it is in the
> WEB-INF directory of the
> 'raw' war file. When you cook the file (using
> wsdeploy) then the bits in
> your web.xml will get transferred to the final
> web.xml,
>
> Kevin Jones
> http://kevinj.develop.com/weblog
>
> > -----Original Message-----
> > From: Rune Science [mailto:runescience_at_yahoo.com]
> > Sent: 16 May 2005 18:56
> > To: users_at_jax-rpc.dev.java.net
> > Subject: jax-rpc web.xml getting overwritten?
> >
> > Hi. I have written a full fledged webservice,
> based on
> > the simple hello sample.
> >
> > The thing is that I need to add to the servlet
> section
> > of the web.xml the following lines.
> >
> > <init-param>
> > <param-name>user</param-name>
> > <param-value>me</param-value>
> > <param-name>password</param-name>
> > <param-value>pw</param-value>
> > <param-name>database</param-name>
> > <param-value>someconnection</param-value>
> > </init-param>
> >
> > I noticed that there is a before web.xml and after
> the
> > wscompile and deploy run, there is an updated
> web.xml
> > file.
> >
> > The before web.xml has no servlet in it. This
> makes
> > sense, because its a skeleton, but of course there
> is
> > no servlet section yet.
> >
> > So I edit the lines to put the servlet name in
> there
> > and the init param section.
> >
> > How do I get those lines into the web.xml, and get
> > them to stay there? I tried to find some
> properties in
> > the wscompile and the wsdeploy, and the
> config.xml,
> > and the -ri.xml file. But there is no indication
> on
> > how to do that.
> >
> > Can some one give me some advice???
> >
> >
> >
> > Yahoo! Mail
> > Stay connected, organized, and protected. Take the
> tour:
> > http://tour.mail.yahoo.com/mailtour.html
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe_at_jax-rpc.dev.java.net
> > For additional commands, e-mail:
> users-help_at_jax-rpc.dev.java.net
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail:
> users-help_at_jax-rpc.dev.java.net
>
>


                
Discover Yahoo!
Use Yahoo! to plan a weekend, have fun online and more. Check it out!
http://discover.yahoo.com/