After looking over my message I realized I didnt give very much info to help
locate my issue.  So here is all the relevant info.

Within the .ear, I have a web application (which is where I am having my
problems I believe so I will focus on that).

Within the .ear I have the following directory structure

META-INF/ (will ignore)
ejb-app/  (will ignore)
web-app/ 
        admin/
        images/
        META-INF/ (will ignore)
        WEB-INF/
                orion-web.xml
                web.xml
                classes/
                        BlahServlet.class
                        net/
                                blah/
                                        BlahBean.class
                lib/

All the files, permissions, beans, etc are working without issues.  My
servlet is not responding to the mapping in web.xml which looks like this

 . . .
  <servlet>
    <servlet-name>blah</servlet-name>
    <servlet-class>BlahServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>blah</servlet-name>
    <url-pattern>*.test</url-pattern>  (which should may anything ending in
".test")
  </servlet-mapping>
 . . .

Which looks to follow the Servlet 2.2 spec correctly.

Within the .jsp, I have a form with the following tag:

<FORM ACTION="/tryThis.test">

Now, If I am not mistaken, the form should be sent to the servlet (where i
am parsing through getRequestURI() to determine the appropriate action class
to use to process the form etc).

What I do get when I submit this form is a 404 not found error.  It appears
as though the server is looking for http://www.myserver.com/tryThis.test
instead of passing the form data to the servlet.

Hopefully this is enough info for someone to give me an idea of what I am
doing wrong with the servlet mapping (if that is my issue)

Thanks again.

Jeff
                
                
        
        



> -----Original Message-----
> From: Bailey, Jeff A [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 19, 2000 11:20 AM
> To: Orion-Interest
> Subject: RE: servlet-map
> 
> 
> I am having the same issue with a very similar configuration 
> (using a *.blah
> mapping).  I have also attempted to use  different mappings 
> (/test/*) etc
> with no luck.
> 
> When attempting to post data from a form 
> 
>       <FORM ACTION="/test1.blah" . . .> 
> 
> I get a 404 error.  My configuration is similar to that below 
> so wont post
> it here.
> 
> Anyone have any ideas about what I am / we are doing wrong?
> 
> Thanks in advance,
> 
> Jeff
> 
> > -----Original Message-----
> > From: Mark Koontz [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 18, 2000 7:54 PM
> > To: Orion-Interest
> > Subject: servlet-map
> > 
> > 
> > For some reason, I can't get servlet-map to map to a servlet. 
> >  Am I doing
> > something wrong?  Here is the web-app configuration:
> > 
> > <?xml version="1.0"?>
> > <!DOCTYPE web-application SYSTEM "web-application.dtd">
> > 
> > <web-app>
> > 
> >     <display-name>Model-2</display-name>
> >     <description>
> >             Demonstration of a Model-2 Application
> >     </description>
> > 
> >     <servlet>
> >             <servlet-name>ctrl</servlet-name>
> >             <servlet-class>Controller</servlet-class>
> >     </servlet>
> > 
> >     <servlet-mapping>
> >             <servlet-name>ctrl</servlet-name>
> >             <url-pattern>*.mdl2</url-pattern>
> >     </servlet-mapping>
> > 
> >     <welcome-file-list>
> >             <welcome-file>index.html</welcome-file>
> >     </welcome-file-list>
> > 
> > </web-app>
> > 
> > Thanks for any help!
> > Mark
> > 
> > 
> 

Reply via email to