0

I have App engine application, with that servlet:

<servlet>
    <servlet-name>Authorization</servlet-name>
    <servlet-class>x.y.z.Authorization</servlet-class>
</servlet>

<servlet-mapping>
    <servlet-name>Authorization</servlet-name>
    <url-pattern>/pattern</url-pattern>
</servlet-mapping>

everything works. servlet invokes with this pattern http ://localhost/pattern

now I want to create AutorizationServlet default page. I need to invoke that servlet with this pattern:

http ://localhost

if I write <url-pattern></url-pattern> I have AppEngineConfigException:

Lipis
  • 21,388
  • 20
  • 94
  • 121
grep
  • 5,465
  • 12
  • 60
  • 112

1 Answers1

-1

Try this :

<url-pattern>/</url-pattern>
Daniel Robertus
  • 1,100
  • 1
  • 11
  • 24
  • it's another one. It may cause another problem. see that question: [this question](http://stackoverflow.com/questions/18408805/create-servlet-url-pattern-with) – grep Aug 27 '13 at 07:26
  • @DSTH or you can set your default page in your web.xml and put your AutorizationServlet there.. – Daniel Robertus Aug 27 '13 at 11:31