You need to use both.

When you install a WAR file, it asks you for the context name (if you deployed an Ear file the context is in application.xml). The other thing you need to use is in the url-pattern (the display name doesn't have any functional purpose).

For example, if your context name in MyApp, the request to call your servlet is http://mymachine/MyApp/cmd.

If you don't remember the context name, you can see it in the log files when the app starts.

Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Lim Hock-Chai
Sent: Wednesday, May 13, 2009 5:40 PM
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] WebGroup/Virtual Host has not been defined (newbie at work)

Ok. As mentioned in the subject, this is a newbie at work here. So
pardon my question: Should I use the war file folder name as the context
name or should I use the name indicated in the display-name tag of the
web.xml as the context name?

"Haas, Matt (CL Tech Sv)" <matt.haas@xxxxxxxxxxx> wrote in message
news:<mailman.6984.1242229956.23468.web400@xxxxxxxxxxxx>...
You need to include the context name (this was specified when you
installed the War file) of your application in the URL.

Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Lim Hock-Chai
Sent: Wednesday, May 13, 2009 11:36 AM
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] WebGroup/Virtual Host has not been defined (newbie at
work)

I'm getting this error "SRVE0255E: A WebGroup/Virtual Host to handle
/cmd has not been defined"

Below is my web.xml
<display-name>

dhiveCommandXML</display-name>

<servlet>

<servlet-name>CommandServlet</servlet-name>


<servlet-class>com.arch.servlet.command.CommandServlet</servlet-class>

<init-param>

-<param-name>com.arch.dhive.propertyFile</param-name>


-<param-value>/javaapps/staging/boss.ear/resources/properties/boss.prope
rties</param-value>
</init-param>



</servlet>



<servlet-mapping>

<servlet-name>CommandServlet</servlet-name>

<url-pattern>/cmd</url-pattern>

</servlet-mapping>




Does anyone know what I need to do to correct this? I'm using WAS6.1
and I got the dhiveCommandXML web module pointing to default_host.


thanks.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.