<Context path="/services" docBase="services.war" debug="9999" reloadable="true" className="com.mkodo.web.services.WebServiceContext" privileged="true">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="services_log." suffix=".txt"
timestamp="true"/>
<Loader loaderClass="com.mkodo.web.servlet.PrivilegedClassLoader" />
<Realm className="com.mkodo.web.services.WebServiceRealm" />
<Resources className="org.apache.naming.resources.WARDirContext"
allowLinking="true"/>
<Resource name="mkodo/web-service-lookup" auth="Container"
type="com.mkodo.web.services.RemoteServiceLocator"/>
<ResourceParams name="mkodo/web-service-lookup">
<parameter>
<name>factory</name>
<value>org.apache.naming.factory.BeanFactory</value>
</parameter>
</ResourceParams>
</Context>
This is in a services.xml file in webapps along with my services.war. So change your docBase to be your war file and hopefully you should be set.
Jon
Shilpa Nalgonda wrote:
Thanks, now i get this error --\ : Doc base must point to a WAR file at org.apache.naming.resources.WARDirContext.setDocBase(WARDirContext.java:172) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java :3349) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3479) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497)
I have this entry in server.xml, i have closed the Context too.
<Context path="/rpcoemapi" docBase="rpcoemapi" debug="5" reloadable="true" crossContext="true" useNaming="true">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_rpcoemapi.log" suffix=".txt" timestamp="true"/> <Resources className="org.apache.naming.resources.WARDirContext" allowLinking="true"/> <Resource name="jdbc/ODINPRD" auth="Container" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/ODINPRD"> <parameter> <name>factory</name> <value>org.apache.commons.dbcp.BasicDataSourceFactory</value> </parameter>
<!-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle ============================================================================ ======================
-----Original Message----- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Monday, September 27, 2004 10:59 AM To: Tomcat Users List Subject: Re: cannot deploy the war file..Tomcat 4.1.30 --- please suggest...
Ok, wait a minute. Have you got a Context element for your War file? (Either within server.xml or in a webapps/rpcoemapi.xml file) Or have you just dropped it in webapps and are expecting tomcat to autodeploy?
If the latter then I would have expected Tomcat to pick the correct type of Resources: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%2 0Application%20Deployment
If it's the former case then the Resources element nests inside the Context element: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/resources.html
Jon
Shilpa Nalgonda wrote:
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]