java - Allocate exception for servlet in jBoss -
i have index.jsp
<form method="post" action="addentry"> </form>
submits addentry.java
(servlet)
mapping in web.xml
<servlet> <servlet-name>addentry</servlet-name> <servlet-class>com.test.addentry</servlet-class> </servlet> <servlet-mapping> <servlet-name>addentry</servlet-name> <url-pattern>/addentry/*</url-pattern> </servlet-mapping>
using jboss 7 when submit form,
servlet com.test.addentry unavailable.
allocate exception servlet.
i have added dependencies servlet jars in pom.xml as
<dependency> <groupid>javax.servlet</groupid> <artifactid>servlet-api</artifactid> <version>2.5</version> <scope>provided</scope> </dependency> <dependency> <groupid>javax.servlet</groupid> <artifactid>javax.servlet-api</artifactid> <version>3.1.0</version> <scope>provided</scope> </dependency>
error logs
Comments
Post a Comment