java - Manually adding file to classpath -
i'm trying test war deployed in tomcat 7, seems missing xml configuration:
web.xml
<servlet> <servlet-name>storageengine</servlet-name> <servlet-class>com.jpeterson.littles3.storageengine</servlet-class> <init-param> <param-name>contextconfiglocation</param-name> <param-value>classpath:storageengine-servlet.xml</param-value> </init-param> </servlet>
i have downloaded storageengine-servlet.xml
separately, able satisfy init-param
need put xml file in \webapps\littles3-2.3.0\web-inf
folder, relative web.xml
? or?
no, belongs in web-inf/classes of war file. in classpath of tomcat app, loaded app class loader.
Comments
Post a Comment