Invalid URL Pattern exception when deploying ear file

Hi,

I encountered some problem during deploying an ear file into SJSAS PE. This ear file has successfully been deployed into WebLogic Server and works fine.

The error message is as follows:

Deploying application in domain failed; Error loading deployment descriptorsfor module [wsgServerRel1_0] -- Invalid URL Pattern: [pfk/PfkMainServlet] Error loading deployment descriptorsfor module [wsgServerRel1_0] -- Invalid URL Pattern: [pfk/PfkMainServlet]

The following is the relevant part regarding URL pattern:

<servlet>

<servlet-name>PfkMainServlet</servlet-name>

<servlet-class>com.sns.pfk.servlet.PfkMainServlet</servlet-class>

<load-on-startup>0</load-on-startup>

</servlet>

<servlet-mapping>

<servlet-name>PfkMainServlet</servlet-name>

<url-pattern>pfk/PfkMainServlet</url-pattern>

</servlet-mapping>

What else I need to do to make it work?

Regards,

Xinjun

[1117 byte] By [Andrew_sg] at [2007-11-26 8:11:48]
# 1

You have an error in your url-pattern. A url-pattern must either begin with a slash ("/") for the exact match or directory match or it could begin an asteric("*") for the extension match(refer to the servlet spec).

In your case it should be something like:

<servlet-mapping>

<servlet-name>PfkMainServlet</servlet-name>

<url-pattern>/pfk/PfkMainServlet</url-pattern>

</servlet-mapping>

or

<servlet-mapping>

<servlet-name>PfkMainServlet</servlet-name>

<url-pattern>/pfk/*</url-pattern>

</servlet-mapping>

Sultal at 2007-7-6 21:04:04 > top of Java-index,Application & Integration Servers,Application Servers...