Starting JBoss 3.2.5 (with embedded Tomcat 5 servlet container), & deploying an ear 
with ejb and war using struts 1.1, the following error appears. I include my 
jboss-web.xml, struts-config.xml, web.xml with Data Source configurations below. What 
have I missed or messed up ?

ERROR [org.apache.struts.action.ActionServlet] Initializing application data source 
org.apache.struts.action.DATA_SOURCE

java.lang.ClassNotFoundException: org.apache.struts.util.GenericDataSource

at java.net.URLClassLoader$1.run(URLClassLoader.java:199)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)

at 
org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1081)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)

at javax.servlet.GenericServlet.init(GenericServlet.java:211)

INFO [org.jboss.web.localhost.Engine] StandardContext[/MyWebApp]Marking servlet action 
as unavailable

ERROR [org.jboss.web.localhost.Engine] StandardContext[/MyWebApp]Servlet /MyWebApp 
threw load() exception

javax.servlet.UnavailableException: Initializing application data source 
org.apache.struts.action.DATA_SOURCE

------------------------------- jboss-web.xml

My jboss-web.xml:

<jboss-web>

<resource-ref>

<res-ref-name>jdbc/MyDataSource</res-ref-name>

<jndi-name>java:comp/env/jdbc/MyDataSource</jndi-name>

</resource-ref>

</jboss-web>

------------------------------- struts-config.xml

My struts-config.xml:

<data-sources>

<data-source>

<set-property property="autoCommit" value="false"/>

<set-property property="description" value="My web App  Configuration"/>

<set-property property="driverClass" value="com.mysql.jdbc.Driver"/>

<set-property property="maxCount" value="4"/>

<set-property property="minCount" value="2"/>

<set-property property="url" value="jdbc:mysql://localhost/MyDataSource"/>

<set-property property="user" value="root"/>

<set-property property="password" value=""/>

</data-source>

</data-sources>

------------------------------------- web.xml

My web.xml:



<servlet-name>action</servlet-name>

<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>

<init-param>

<param-name>config</param-name>

<param-value>/WEB-INF/struts-config.xml</param-value>

</init-param>

<init-param>

<param-name>debug</param-name>

<param-value>2</param-value>

</init-param>

<init-param>

<param-name>detail</param-name>

<param-value>2</param-value>

</init-param>

<load-on-startup>2</load-on-startup>



<servlet-mapping>

<servlet-name>action</servlet-name>

<url-pattern>*.do</url-pattern>

</servlet-mapping>

<welcome-file-list>

<welcome-file>index.jsp</welcome-file>

</welcome-file-list>

<!-- tag libs -->

<resource-ref>

My Web App Connection

<res-ref-name>jdbc/MyDataSource</res-ref-name>

<res-type>javax.sql.DataSource</res-type>

<res-auth>Container</res-auth>

</resource-ref>

--------------------------------------


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3843709#3843709

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3843709


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to