Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Servlet.init() & NoClassDefFoundError

  Asked By: Bastet    Date: Oct 28    Category: Java    Views: 1115
  

I tried to make a Connection between MS access and Struts but I
encountered some errors :


javax.servlet.ServletException: Servlet.init() for servlet action
threw exception
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:946)
at org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:655)
...
and

java.lang.NoClassDefFoundError:
org/apache/struts/legacy/GenericDataSource
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:123)
...

Struts-config.xml

<data-source>
<set-property property="driverClass"
value="sun.jdbc.odbc.JdbcOdbcDriver" />
<set-property property="url"
value="jdbc:odbc:myconnection://localhost/actions/login.do" />
<set-property property="userName" value="" />
<set-property property="password" value="" />
</data-source>



it seems GenericDataSource has deprecated.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Servlet.init() & NoClassDefFoundError Or get search suggestion and latest updates.