Hi, I removed my data-source declaration in struts-config and the application worked fine. I am using jtds to connect to the database. In tomcat 5.0.28 the application connects with the same configuration. Can some one help what could be the problem?
My struts-config for the data-source declaration is <data-sources> <data-source type="org.apache.commons.dbcp.BasicDataSource"> <set-property property="driverClassName" value="net.sourceforge.jtds.jdbc.Driver" /> <set-property property= "url" value= "jdbc:jtds:sqlserver://xx.xx.xxx.xxx:1433;DatabaseName=......" /> <set-property property="username" value="......" /> <set-property property="password" value="......." /> </data-source> </data-sources> xx.xx.xxx.xxx is the IP address of my Sql Server machine. Vijaya -----Original Message----- From: Vijaya [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 11, 2006 4:30 PM To: Tomcat Users List Subject: Servlet Action is not available .... Please Help Hi, I am struggling with this error for the past 10 days. Can someone help me solve this frustrating problem? I tried almost all the suggestion that users have suggested in sun forum. The web application works fine in Tomcat 5.0.28 but I get the 'Servlet Action is not available' error in 5.5.16. The log file has no information that I can research the error. My environment is Tomcat 5.5.16 under Windows XP. The jar files are located as follows Tomcat . .common ...lib (Jar files in this folder)commons-el, jasper-compiler, jasper-compiler-jdt, jasper-runtime, jaxen-full, jdbc2_0-stdext , jsp-api, jstl, naming-factory, naming-factory-dbcp, naming-resources,Servlet-api, standard, xalan,xerces-impl, xml-apis .webapps ..AYS (My application) WEB-INF lib (jar files in this folder are)antlr, commons-beanutils, commons-digester, commons-fileupload, commons-lang-2.0, commons-logging, commons-validator, hsqldb-1.7.1, jakarta-oro, jaxen-full, jdbc2_0-stdext, jstl, jtds-1.0, log4j-1.2.8, saxpath, standard, struts-menu-2.3, struts, velocity-1.4, velocity-tools-view-1.0, xalan, xercesImpl, xml-apis WEB.XML Details <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <session-config> <session-timeout> 30 </session-timeout> </session-config> <servlet> <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>application</param-name> <param-value>ApplicationResources</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <!-- ActionServlet mapping Definition --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <!-- Starting webpage for the application --> <welcome-file-list> <welcome-file>login.jsp</welcome-file> </welcome-file-list> <!-- Struts Tag Library Descriptors --> <jsp-config> <taglib> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-menu</taglib-uri> <taglib-location>/WEB-INF/struts-menu.tld</taglib-location> </taglib> </jsp-config> </web-app> LOG FILE INFO: localhost log file as no specific info about the error and Catalina log file is as follows Apr 11, 2006 3:16:22 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: c:\jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32; C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\jdk1.5.0_06\bin;c:\jdk1.5.0_06\jr e\bin;c:\Python22;C:\Program Files\PC-Doctor for Windows\services;C:\Program Files\ATI Technologies\ATI Control Panel; Apr 11, 2006 3:16:23 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Apr 11, 2006 3:16:23 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1828 ms Apr 11, 2006 3:16:23 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Apr 11, 2006 3:16:23 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.16 Apr 11, 2006 3:16:23 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Apr 11, 2006 3:16:28 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Apr 11, 2006 3:16:29 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Apr 11, 2006 3:16:29 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/31 config=null Apr 11, 2006 3:16:29 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Apr 11, 2006 3:16:29 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 5937 ms Apr 11, 2006 3:17:11 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Apr 11, 2006 3:17:32 PM org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at java.net.Socket.<init>(Socket.java:365) at java.net.Socket.<init>(Socket.java:207) at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:473) at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:270) at org.apache.jk.server.JkMain.pause(JkMain.java:679) at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:162) at org.apache.catalina.connector.Connector.pause(Connector.java:1031) at org.apache.catalina.core.StandardService.stop(StandardService.java:491) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:743) at org.apache.catalina.startup.Catalina.stop(Catalina.java:601) at org.apache.catalina.startup.Catalina.start(Catalina.java:576) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Apr 11, 2006 3:17:33 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Apr 11, 2006 3:17:33 PM org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Apr 11, 2006 3:17:33 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: Failed shutdown of Apache Portable Runtime Vijaya --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]