User user = SpringUtil.getUserService().validate("Admina", "pass123");
Yes it can be done, we just have to figure out how.
Yes it can be done, we just have to figure out how.
Anurag Verma wrote:In eclipse, its okay if you have it in classpath (Though it is always recommended to have it in WEB-INF/lib for a non-maven/non-gradle web project). When you run it outside eclipse in some web or app server, you must have it in WEB-INF/lib. Did you check the lib folder in deployed location? is it having the jars??
antlr-2.7.7.jar
aopalliance-.jar
commons-logging-1.1.3.jar
dom4j-1.6.1.jar
hibernate-commons-annotations-4.0.5.Final.jar
hibernate-core-4.3.7.Final.jar
hibernate-jpa-2.1-api-1.0.0.Final.jar
jandex-1.1.0.Final.jar
javassist-3.18.1-GA.jar
jboss-logging-3.1.3.GA.jar
jboss-logging-annotations-1.2.0.Beta1.jar
jboss-transaction-api_1.2_spec-1.0.0.Final.jar
junit-3.8.1.jar
ojdbc6.jar
spring-aop-4.2.4.RELEASE-javadoc.jar
spring-aop-4.2.4.RELEASE-sources.jar
spring-aop-4.2.4.RELEASE.jar
spring-aspects-4.2.4.RELEASE-javadoc.jar
spring-aspects-4.2.4.RELEASE-sources.jar
spring-aspects-4.2.4.RELEASE.jar
spring-beans-4.2.4.RELEASE-javadoc.jar
spring-beans-4.2.4.RELEASE-sources.jar
spring-beans-4.2.4.RELEASE.jar
spring-context-4.2.4.RELEASE-javadoc.jar
spring-context-4.2.4.RELEASE-sources.jar
spring-context-4.2.4.RELEASE.jar
spring-context-support-4.2.4.RELEASE-javadoc.jar
spring-context-support-4.2.4.RELEASE-sources.jar
spring-context-support-4.2.4.RELEASE.jar
spring-core-4.2.4.RELEASE-javadoc.jar
spring-core-4.2.4.RELEASE-sources.jar
spring-core-4.2.4.RELEASE.jar
spring-expression-4.2.4.RELEASE-javadoc.jar
spring-expression-4.2.4.RELEASE-sources.jar
spring-expression-4.2.4.RELEASE.jar
spring-instrument-4.2.4.RELEASE-javadoc.jar
spring-instrument-4.2.4.RELEASE-sources.jar
spring-instrument-4.2.4.RELEASE.jar
spring-instrument-tomcat-4.2.4.RELEASE-javadoc.jar
spring-instrument-tomcat-4.2.4.RELEASE-sources.jar
spring-instrument-tomcat-4.2.4.RELEASE.jar
spring-jdbc-4.2.4.RELEASE-javadoc.jar
spring-jdbc-4.2.4.RELEASE-sources.jar
spring-jdbc-4.2.4.RELEASE.jar
spring-jms-4.2.4.RELEASE-javadoc.jar
spring-jms-4.2.4.RELEASE-sources.jar
spring-jms-4.2.4.RELEASE.jar
spring-messaging-4.2.4.RELEASE-javadoc.jar
spring-messaging-4.2.4.RELEASE-sources.jar
spring-messaging-4.2.4.RELEASE.jar
spring-orm-4.2.4.RELEASE-javadoc.jar
spring-orm-4.2.4.RELEASE-sources.jar
spring-orm-4.2.4.RELEASE.jar
spring-oxm-4.2.4.RELEASE-javadoc.jar
spring-oxm-4.2.4.RELEASE-sources.jar
spring-oxm-4.2.4.RELEASE.jar
spring-test-4.2.4.RELEASE-javadoc.jar
spring-test-4.2.4.RELEASE-sources.jar
spring-test-4.2.4.RELEASE.jar
spring-tx-4.2.4.RELEASE-javadoc.jar
spring-tx-4.2.4.RELEASE-sources.jar
spring-tx-4.2.4.RELEASE.jar
spring-web-4.2.4.RELEASE-javadoc.jar
spring-web-4.2.4.RELEASE-sources.jar
spring-web-4.2.4.RELEASE.jar
spring-webmvc-4.2.4.RELEASE-javadoc.jar
spring-webmvc-4.2.4.RELEASE-sources.jar
spring-webmvc-4.2.4.RELEASE.jar
spring-webmvc-portlet-4.2.4.RELEASE-javadoc.jar
spring-webmvc-portlet-4.2.4.RELEASE-sources.jar
spring-webmvc-portlet-4.2.4.RELEASE.jar
spring-websocket-4.2.4.RELEASE-javadoc.jar
spring-websocket-4.2.4.RELEASE-sources.jar
spring-websocket-4.2.4.RELEASE.jar
xml-apis-1.0.b2.jar
Yes it can be done, we just have to figure out how.
Anurag Verma wrote:Do you have the listener configured in web.xml? if not, add this into your web.xml -
Yes it can be done, we just have to figure out how.
Yes it can be done, we just have to figure out how.
Yes it can be done, we just have to figure out how.
-com
--dao
---impl
----UserDAOImpl.java
---UserDAO.java
--factory
---SpringUtil.java (this is to call the main xml)
---bean.xml (Application Context goes here)
--model
---User.java
---User.hbm.xml
--services
---impl
----UserServiceImpl.java
---UserService.java
--servlet
---LoginServlet.java
Yes it can be done, we just have to figure out how.
WARN: HHH000342: Could not obtain connection to query metadata : Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
Yes it can be done, we just have to figure out how.
Yes it can be done, we just have to figure out how.
Yes it can be done, we just have to figure out how.
Add your Spring dependencies into the jar as already mentioned earlier in steps to use maven. (every time you get a class not found, look for the maven dependency of it in mvnrepository and add it to pom.xml
Yes it can be done, we just have to figure out how.
Hey! Wanna see my flashlight? It looks like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|